On Thu, 21 Oct 2004, Alan Stern wrote:

> On Thu, 21 Oct 2004, Guennadi Liakhovetski wrote:
>
> > Actually, I had an impression, that this was already supported - the
> > user-space decides which driver to load for a specific event to cover
> > possible alternative / overlapping drivers... So, it might be, that it's
> > just usb/storage/usb.c that needs to be converted?
>
> It's not as simple as that (when is it ever?).  Loading drivers is a
> separate operation from binding drivers to devices.  If there are two
> drivers that can both manage the same device, and one of them is already
> loaded, then the kernel will bind that one to the device regardless of
> what the userspace hotplug programs do.  Or if both are already loaded,
> the kernel will simply bind the first one on its list.

Right, that's logical. But in the case of ub / storage if you compile ub,
you have no chance to use usb-storage, even if you load it manually and ub
is not loaded. So, the question is - why cannot we get in this case too 2
competing drivers, having the ability to use either?

I think, I didn't explain my problem exactly. I coompiled all usb drivers
as modules, including usb-storage and ub. I don't use hotplug. I connect a
storage device (a card reader with a CF, or a memory stick), load
usb-storage (or in the reverse order) - it doesn't attach. ub does. In
drivers/usb/storage/usb.c I see

        /* Bulk-only transport for all SubClass values */
...
#if !defined(CONFIG_BLK_DEV_UB) && !defined(CONFIG_BLK_DEV_UB_MODULE)
        { USB_INTERFACE_INFO(USB_CLASS_MASS_STORAGE, US_SC_SCSI, US_PR_BULK) },
#endif

I thought, this was the problem, but I am not sure any more. So, is this
the expected behaviour or one should be able to use either driver just by
loading one or another?

Thanks
Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to