From: Pete Zaitcev <zaitcev@redhat.com>
To: Bill Davidsen <davidsen@tmr.com>
Cc: Wolfgang Scheicher <worf@sbox.tu-graz.ac.at>,
linux-kernel@vger.kernel.org, zaitcev@redhat.com
Subject: Re: 2.6.9 USB storage problems
Date: Thu, 4 Nov 2004 01:19:32 -0800 [thread overview]
Message-ID: <20041104011932.0b5d2aae@lembas.zaitcev.lan> (raw)
In-Reply-To: <41895583.10604@tmr.com>
On Wed, 03 Nov 2004 17:02:43 -0500, Bill Davidsen <davidsen@tmr.com> wrote:
> I just got information on this in another thread, in case you didn't see
> my note there, is this behaviour a bug, design choice, or unavoidable
> hardware issue? I can turn it off now, but I'm supposed to be getting a
> flash key thing to test, which is why I turned it on in the first place.
The explanation may be a little long.
On most distributions, drivers are loaded with hotplug. Nobody, and I do
mean it, for all practical reasons nobody loads their drivers from
/etc/rc.d/rc.local anymore. (Side note: it is possible to load ub from
/etc/modprobe.conf, but not usb-storage, because of too many layers
between a block device and usb-storage: an open is a non-event there)
The hotplug is controlled by match lists, generated from C source (indirectly;
actually from object files, compiled from C source). This way, what is loaded
by hotplug would match what is present if same things were linked in, among
other things. The hotplug has no preference mechanism aside from hand-editing
those match lists. They have to be non-conflicting.
Given the above, it's hurtful to allow drivers to conflict, so such conflicts
are rare. I know of bcm5700 vs. tg3, eepro100 vs. e100, 812x vs 8130too.
AFAIK, in all such cases if one is configured, another cannot be configured
and vice versa. The USB contains an exception, curiously enough. In 2.4
kernels, it was possible to configure both uhci (ALT) and usb-uhci as
modules. It was annoying; Red Hat resolved it by loading usb-uhci from
/etc/rc.d/rc.sysinit (also marked in /etc/modules.conf, but that was
just a tag for kudzu and other tools).
So, when ub is configured to service certain classes of devices, usb-storage
relinquishes its control of them, resolving the conflict. This is assymmetric
in its implementation, but it's an artefact; no implication is made about
which driver is first among equals. In an ideal world we'd have something
like CONFIG_USB_STORAGE_PREF with two values "ub" and "usb-storage", or such.
I thought about the coexistence between the two at some length, and it seems
to me that the current scheme is the simplest workable scheme. I even thought
it as "least confusing" until messages from Wolfgang and others made it clear
that relationship between ub and usb-storage is not obvious enough to them.
I'm always open to patches, too.
-- Pete
next prev parent reply other threads:[~2004-11-04 9:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-12 12:24 2.6.9-rc4 " Wolfgang Scheicher
2004-10-12 17:51 ` bert hubert
2004-11-01 17:50 ` 2.6.9 " Wolfgang Scheicher
2004-11-01 19:10 ` Matthew Dharm
2004-11-01 19:40 ` Wolfgang Scheicher
2004-11-01 21:35 ` Matthew Dharm
2004-11-01 22:19 ` Wolfgang Scheicher
2004-11-01 23:33 ` Pete Zaitcev
2004-11-02 0:46 ` Pete Zaitcev
2004-11-03 22:02 ` Bill Davidsen
2004-11-04 9:19 ` Pete Zaitcev [this message]
2004-11-04 19:04 ` Bill Davidsen
2004-11-04 20:14 ` Pete Zaitcev
2004-11-02 2:50 Chuck Ebbert
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=20041104011932.0b5d2aae@lembas.zaitcev.lan \
--to=zaitcev@redhat.com \
--cc=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=worf@sbox.tu-graz.ac.at \
/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
all inboxes | Powered by JetHome®