From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Thu, 16 Jun 2005 21:54:22 +0000 Subject: $MODALIAS and platform_bus ... Message-Id: <200506161454.22163.david-b@pacbell.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Has anyone done anything to make sure platform_bus devices can use this new $MODALIAS infrastructure? I was looking at the implications for "coldplug" processing, and there's a hole where platform device support would go. As a reminder, those devices don't do driver binding quite the normal way. They more or less use the rule that the driver name and device name must match (modulo optional numeric suffix on the device). System-on-Chip processors use platform_bus for most of the on-chip peripherals ... potentially dozens of them, but any given board probably won't wire them all up. So given a /sys/devices/platform/$NAME/. there are a few things standing in the way of automatically initializing those devices: - No /sys/devices/platform/$NAME/modalias - No MODULE_ALIAS(...) in the driver module Now the former would seem easy to provide, or even eliminate the requirement for it ... the "modalias" will either be $NAME or $NAME less a prefix such as ".1" or ".2". Or, it should be trivial to have linux/drivers/bus/platform.c create it. The latter would seem just a bit trickier, since it couldn't be driven using linux/scripts/mod/file2alias.c because that relies on a non-existent module device table. Drivers could explicitly write MODULE_ALIAS if their module name didn't already match that convention, but that could be quite a lot of drivers to change. Comments? - Dave ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel