From: Pete Zaitcev <zaitcev@redhat.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: greg@kroah.com, linux-kernel@vger.kernel.org,
linux-usb-devel@lists.sourceforge.net,
usb-storage@lists.one-eyed-alien.net
Subject: Re: RFC drivers/usb/storage/libusual
Date: Wed, 28 Sep 2005 19:21:31 -0700 [thread overview]
Message-ID: <20050928192131.56226005.zaitcev@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0509281248570.4491-100000@iolanthe.rowland.org>
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
next prev parent reply other threads:[~2005-09-29 2:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-28 3:55 RFC drivers/usb/storage/libusual Pete Zaitcev
2005-09-28 8:52 ` [linux-usb-devel] " Greg KH
2005-09-28 19:40 ` Alan Stern
2005-09-29 0:01 ` Pete Zaitcev
2005-10-10 21:15 ` Rusty Russell
2005-10-07 7:24 ` Pete Zaitcev
2005-10-07 14:41 ` [usb-storage] " Alan Stern
2005-10-08 7:35 ` Pete Zaitcev
2005-10-08 15:17 ` Alan Stern
2005-10-08 21:01 ` usb: drivers/usb/storage/libusual Pete Zaitcev
2005-10-09 2:14 ` [usb-storage] " Matthew Dharm
2005-10-09 8:09 ` Pete Zaitcev
2005-09-28 16:56 ` [linux-usb-devel] RFC drivers/usb/storage/libusual Alan Stern
2005-09-29 2:21 ` Pete Zaitcev [this message]
2005-09-30 7:09 ` Phil Dibowitz
2005-10-01 0:26 ` Pete Zaitcev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050928192131.56226005.zaitcev@redhat.com \
--to=zaitcev@redhat.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=stern@rowland.harvard.edu \
--cc=usb-storage@lists.one-eyed-alien.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox