Messages in this thread | | | Date | Wed, 28 Sep 2005 19:21:31 -0700 | From | Pete Zaitcev <> | Subject | Re: RFC drivers/usb/storage/libusual |
| |
On Wed, 28 Sep 2005 12:56:27 -0400 (EDT), Alan Stern <stern@rowland.harvard.edu> wrote: > On Tue, 27 Sep 2005, Pete Zaitcev wrote:
> Can your scheme accomodate these "subdriver" modules?
Yes. We'd have to add a few types, like USB_US_TYPE_USBAT or something.
> Will the hotplug system work with them? I'm not sure, but it's > possible that in some cases the device descriptors will match > the generic usb-storage or ub driver as well as the more > specialized "subdriver". Will the hotplug system choose the > most specific match? Even if it's not currently loaded in > memory and the less specific driver is?
This problem exists already, in the shape of an Adaptec SCSI adapter with Bulk transport. The ub attaches to it just fine, but then it cannot drive tapes or other non-disk devices behind the adapter.
I solve it by ordering the table so that the more specific entry is ahead of the least specific entries. This is why subdrivers have pointers to a common table and have to test type and reject "other" devices. This is why the table is not split.
I tried to find a way to a) make modprobe to match with v*p* first, then dcb* and other such things, when it looks at modules.alias, and b) have kernel to find "best fit" instead of "first fit". It can be done. But I thought that if I engage into wholesale improvements like that, I'll miss the window of Fedora Core 5.
Strategically, such approach sounds attractive, and, fortunately for me, does not seem to conflict with that I came up presently. We'll add split tables later, and that may allow to throw out request_module(). Sounds good, just maybe not this month.
-- Pete - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |