On Wed, 2006-11-29 at 11:37 -0500, Alan Stern wrote:

> Or export a template structure with default values which could be copied.

That is possible, though is a bit more overhead in some cases than
exported functions by the module.

> >     For the second issue, the core could auto load the sub modules ...
> 
> That won't work without cooperation from userspace.  What if somebody
> wants to boot from a USB flash drive?  At startup time there is almost no 
> userspace available.
> 
> >  * Leave everything in a single module, and somehow implement
> >     a ohci_glue_init() and a ohci_glue_exit() that would work as
> >     module_init and _exit except it would allow several in the same
> > module ...
> 
> Or do what Ben H. mentioned: Have the main ohci_init() routine contain a 
> bunch of calls to the bus-glue init routines, each one protected by #ifdef
> (and the same for ohci_exit).

Well, as a matter of fact, I proposed the multiple modules solution to
Sylvain as I think it's better overall... 

The problem of the PCI module changing name should mostly be a non-issue
in most setups these days since udev etc... will still find it just
fine. (I didn't say on all setups... but most).

I think it's just a bizarre approach inherited because of the way the
driver evolved that we have all the glues built-in....

I is more logical to split it.

Now, it's your call. At this point, we need a solution, so what do you
want ? Either we keep everything in one module and hack the
module_init() to call the glues (which means ifdef's etc...) or we go to
the split modules approach. Whatever you want, we'll comply but we need
to do something for 2.6.20... :-)

(Which reminds me that i need to send you a new big endian EHCI patch
and mixed endian OHCI too ... will do that asap).

Cheers,
Ben



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to