Maybe I should have replied earlier, but I thought
that the cardbus/ohci order requirement was just obvious,
so Johan's suggestion to modprobe usb-ohci after cardbus/cardctl
is loaded should work.
The question is why did it work in 2.3.30 and not work now.
Besides MANY USB changes, there have also been LOTS of
PCMCIA/cardbus changes in that span of time/releases.
The biggest one in USB that affects load/init order is
that many USB modules were changed from init by direct
calls to init by init sections (initcalls).
For 2.4 I expect that Johan's setup in /etc/modules.conf
(no longer conf.modules IIRC) will be the trick.
That appears to be the solution for pcmcia/cardbus as well,
although I can't test that. Can anyone confirm this?
I have thought about David's bigger question some although
we haven't discussed it (about how to load any/all USB modules
automagically).
I don't see a solution yet (other than the modules.conf trick).
Too much of a chicken/egg problem. Actually it's the
USB master/slave (host/device) interface.
<fuzzy>
I was thinking about (in the future, like 2.5) experimenting
with enabling the USB HC interrupt (first find/identify it)
and seeing if it ever needed irq service, but since USB
is a master-slave protocol, this won't happen. A HC driver
must be there at a minimum to see any USB device activity.
Currently HCDs require usbcore.o also. Maybe we could
modify the HCDs to be lazy about loading & registering with
usbcore, but then the usbcore symbols would need to be
"optional."
</fuzzy>
~Randy
> -----Original Message-----
> From: Johan Verrept [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 25, 2000 7:44 AM
> To: David Brownell
> Cc: Miles Lane; [EMAIL PROTECTED]
> Subject: Re: [linux-usb] Can I load ohci and uhci simultaneously and
> have themenable different interfaces?
>
> I've got them both too.
>
> I think if you would use usb-ohci as a module, your problem
> will go away,
> Miles. (At least when you insert the module after you inserted the
> cardbus-card).
> If I am not mistaken, the code will 'probe' when booting the
> kernel or when
> the usb-ohci module is inserted, not when a card is inserted
> (or in this case,
> detected).
> The usb drivers are probe()ing before the cardbus system is
> initialised and,
> at that point, you don't have a ohci adapter yet...
>
> dave:
> You can use the pre-install option in /etc/conf.modules to
> load usb-core when
> you insert usb-*
> usbdevfs will not be mounted if the usb-core is not loaded.
> (but if you have
> the mount in your startup, this will give you a big red FAILED during
> bootup...)
>
> J.
>
> David Brownell wrote:
> >
> > I've certainly used both at the same time, though I've
> > not got a pcmcia or cardbus adapter -- just using PCI,
> > addon (OHCI) and mobo (UHCI). You seem to have found
> > an issue with those pluggable cards.
> >
> > FWIW I think there's still an open issue with loading
> > the modules that should get addressed. To wit:
> >
> > How does one configure a modular kernel so that the
> > "usbcore" module is automatically loaded only if one
> > (or both) USB controller drivers will initialize?
> >
> > I think folk will expect kernel 2.4 to be able to load
> > the USB subsystem automagically if the system has such
> > a host controller. And not to do such stuff if there's
> > no USB hardware there: no 'usbcore' module loaded, no
> > mounting of usbdevfs, etc.
> >
> > I don't recall seeing those issues get mentioned before.
> >
> > - Dave
> >
> > ----- Original Message -----
> > From: Miles Lane <[EMAIL PROTECTED]>
> > To: Dunlap, Randy <[EMAIL PROTECTED]>; David Brownell
> > <[EMAIL PROTECTED]>
> > Cc: USB for Linux <[EMAIL PROTECTED]>; Linus Torvalds
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, May 25, 2000 12:12 AM
> > Subject: Re: [linux-usb] Can I load ohci and uhci
> simultaneously and have
> > themenable different interfaces?
> >
> > > Hi,
> > >
> > > I have an OHCI hub cardbus adapter and a built-in UHCI hub.
> > > Many development kernels ago (~2.3.30) I had gotten the
> > > OHCI card working. Now with 2.3.99-pre9 and the uhci and
> > > usb-ohci drivers built into the kernel, the OHCI hub is not
> > > detected.
> > >
> > > Perhaps simply a problem with the order in which drivers are
> > > being enabled. Anyhow, I'm not sure if there's a workaround.
> > > I'll try building in OHCI support as a module. Still, it'd
> > > be nice if the in-kernel approach would work.
> > >
> > > Here's what I get during boot:
> > >
[log snipped]
> --
> ________
> /---------------------------------\ /--------------------\
> | Johan Verrept \ / Alcatel |
> | Software Development Engineer \ / De Villermontstr 38|
> | xDSL Customer Premises Equipment \/ B-2550 Kontich |
> | http://www.alcateldsl.com/ ALC/\TEL Belgium |
> | mailto:[EMAIL PROTECTED] Phone: +32 3 450 3506 |
> \-------------------------------------------------------------/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]