On Wed, 28 Sep 2005 12:56:27 -0400 (EDT), Alan Stern <[EMAIL PROTECTED]> 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 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
