Re: How to handle device drivers depending on another device.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Whoops - Replying to the list this time.

Hi Grant,

> Problem: There are no guarantees that the MDIO bus controller will be
> probed before the Ethernet device.

I believe that what you're supposed to do is to have "bus" controllers
initilize themselves using subsys_initcall rather than module_init. If
you look in include/linux/init.h you can see the various initcall
definitions. module_init is at the same level as device_initcall. All
of the initcalls at one "level" are completed before moving onto the
next level.

Of course, if you're using loadable modules, then the dependencies
should take care of things for you.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Gstreamer Embedded]     [Linux MMC Devel]     [U-Boot V2]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux ARM Kernel]     [Linux OMAP]     [Linux SCSI]

  Powered by Linux