On Wed, Apr 29, 2009 at 2:12 PM, Greg KH <greg@xxxxxxxxx> wrote: > On Wed, Apr 29, 2009 at 11:11:35AM -0700, Greg KH wrote: >> On Wed, Apr 29, 2009 at 02:05:37PM -0400, Chris Hallinan wrote: >> > I have an OMAP3 board, and want usb (host mode) configured as a >> > loadable module. Using a generic rule such as this: >> > RUN+="/sbin/modprobe -b $env{MODALIAS}" >> > >> > ends up passing "platform:musb_hdrc" to modprobe, which obviously >> > fails. >> >> Why would that fail? Do you have the proper modalias in the kernel >> module to handle this? If not, can you add it? > > I see: > MODULE_ALIAS("platform:" MUSB_DRIVER_NAME); > in the musb code, perhaps MUSB_DRIVER_NAME is not set correctly to be > "musb_hdrc" somehow? >From musb_core.c: #define MUSB_DRIVER_NAME "musb_hdrc" const char musb_driver_name[] = MUSB_DRIVER_NAME; So somewhere else in kernel code (common Kobject/platform code, I don't know) must be prepending the string "platform:" to the driver name. Is this what you think the problem is? All of the platform drivers display this way. From a simple script I wrote that dumps env: export MODALIAS="platform:twl4030_usb" export MODALIAS="platform:twl4030_gpio" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_rtc" export MODALIAS="platform:twl4030_gpio" export MODALIAS="platform:twl4030_usb" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:gpio-keys" export MODALIAS="platform:i2c_omap" export MODALIAS="platform:leds-gpio" export MODALIAS="platform:i2c_omap" export MODALIAS="platform:mmci-omap-hs" export MODALIAS="platform:musb_hdrc" export MODALIAS="platform:omap3beagle_lcd" export MODALIAS="platform:omap2-nand" export MODALIAS="platform:omapfb" export MODALIAS="platform:serial8250" export MODALIAS="platform:serial8250" export MODALIAS="platform:i2c_omap" export MODALIAS="platform:gpio-keys" export MODALIAS="platform:i2c_omap" export MODALIAS="platform:leds-gpio" export MODALIAS="platform:omap2-nand" export MODALIAS="platform:mmci-omap-hs" export MODALIAS="platform:musb_hdrc" export MODALIAS="platform:omap3beagle_lcd" export MODALIAS="platform:serial8250" export MODALIAS="platform:omapfb" export MODALIAS="platform:serial8250" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_reg" export MODALIAS="platform:twl4030_rtc" -Chris -- Life is like Linux - it never stands still. -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html