From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 16 Jun 2005 22:07:39 +0000 Subject: Re: $MODALIAS and platform_bus ... Message-Id: <20050616220739.GA13188@kroah.com> List-Id: References: <200506161454.22163.david-b@pacbell.net> In-Reply-To: <200506161454.22163.david-b@pacbell.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Jun 16, 2005 at 02:54:22PM -0700, David Brownell wrote: > 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. I didn't think platform devices had any hotplug or "coldplug" type support today anyway. > 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. I think just makeing sure the module name matched the $NAME in sysfs, would allow the modalias stuff to work without changing any drivers. But odds are, modules support more than one platform device right? If so, they are going to have to be changed to use MODULE_ALIAS(). thanks, greg k-h ------------------------------------------------------- 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