linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* $MODALIAS and platform_bus ...
@ 2005-06-16 21:54 David Brownell
  2005-06-16 22:07 ` Greg KH
  2005-06-16 23:04 ` David Brownell
  0 siblings, 2 replies; 3+ messages in thread
From: David Brownell @ 2005-06-16 21:54 UTC (permalink / raw)
  To: linux-hotplug

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_id\x16492&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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-16 23:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-16 21:54 $MODALIAS and platform_bus David Brownell
2005-06-16 22:07 ` Greg KH
2005-06-16 23:04 ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).