setting up of platform device archdata?

From: Kumar Gala
Date: Tue Aug 03 2010 - 09:43:43 EST


We are running into in issue in that we need the platform device archdata setup before platform_device_add gets called since we need some data in archdata setup to allow the bus notifiers to work properly. On PPC we need this to get the dma masks setup properly that we than use in the bus notifiers to determine if we need SWIOTLB support for a given device or not. Any suggestions on how to do this? Something like below?

struct platform_device *platform_device_alloc(const char *name, int id)

if (pa) {
strcpy(pa->name, name);
pa-> = pa->name;
pa-> = id;
pa-> = platform_device_release;

- k--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at