David Brownell wrote:
> > > Well, something is going to have to handle the specific host
> > > controller driver that's going to be used. And when it's all
> > > done, if "usbcore" doesn't see any controllers, it's wrong to
> > > consume _any_ of the resources an active USB subsystem needs.
> >
> > Am I missing something or are you guys ignoring the fact that you cannot load
> > a HC driver without usb-core being present because of symbol dependancies ?
>
> If I "modprobe usb-ohci" (ditto with UHCI HCDs) "usbcore" is
> automatically loaded, by virtue of those dependencies.
yeah... but up until now i saw in all the mails talk about 'modprobe usbcore'.
This does not work. You can easily load usbcore without a HC (not very
usefull though;).
I made this remark because it would make it impossible for usb-core to unload
itself if there wasn't a HC present (which seemed to be suggested somewhere).
There will never be a HC driver if usbcore isn't loaded yet... it can be done
by trying to modprobe usb-uhci or modprobe usb-ohci. I am not sure whether
modprobe will unload the usbcore again if the HC insmod failed.
> I _think_ that should let the PCMCIA subsystem handle all
> that it needs to handle. It sees a new USB card, modprobes
> its HCD (usb-ohci probably), and then USB is operational
> because (a) usbcore got modprobed due to dependencies,
> (b) a 'usbd' got started (perhaps it's using KUSBD, or a
> post-install started a user-mode USBD), often even (c) the
> usbdevfs got mounted as a post-install too.
or more, what if I already have an ohci controller and add an extra ohci
controller on a pcmcia card? Your modprobe would fail, but is the driver's
probe function called again ?
IMHO, the problem with the current implementations/designs is not really
pluggin' devices, it's pluggin' (PnP supporting) busses.
J.
--
________
/---------------------------------\ /--------------------\
| 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]