On Friday 14 July 2006 9:46 am, Aleksey Gorelov wrote: > David, Alan, > > Do you think it is Ok to unregister reboot notifier in ehci_run before > registering one to make > sure there is no 'double registering' of notifier, or is it better to move > register/unregister > reboot notifier from ehci_run/ehci_stop completely to some other place ?
Probably the best way is to stop using the notifier, and brute force it by making every EHCI subdriver get its own shutdown() method. That'd be obvious enough for PCI bus glue, and due to recent patches probably even for the non-PCI ones ... since they all use "platform_bus" now, they can all share the same method. Though I could imagine some platforms might want to do extra stuff like clk_disable() after the root hub reset. I could see the tail end of ehci-hcd.c with a forward decl for a method like ehci_platform_shutdown(), updating the subdrivers to reference that, and then #ifdef PLATFORM_DRIVER provide the definition of that routine (doing what the reboot notifier does) for use by the non-PCI subdrivers. - Dave ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
