From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: /sbin/hotplug invocation for USB devices in 2.5.40
Date: Tue, 08 Oct 2002 21:18:48 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-103411189719753@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-103406277101783@msgid-missing>
>> - Don't make hotplug calls for USB devices until we have something
>> for them to do. (Essentially these are a new class of event.)
>
>
> Why not? That lets us load drivers based on vendor and product id. The
> interface specific calls let us load protocol specific drivers, giving
> us a semblance of heirachy that a lot of people used to want a few years
> ago (and Johannes provided a patch for a long time ago.)
I didn't know we had any problems loading drivers based on vendor+product ...
sure seems like I've been doing it for a few years now!
Today's MODULE_DEVICE_TABLE, with flags, should be isomorphic to as much
of a hierachy as is really needed. I seem to recall Johannes saying his
patch didn't do everything MSFT seemed to say needed doing, either.
>> The example that comes to mind is policy agents using those
>> events to choose a non-default device configuration. But USB
>> needs a bunch of work before such things become practical.
>
>
> The USB core needs it? Or the hotplug scripts?
>
> I'm curious about this, as I'm looking at a device that might need to
> have it's second configuration enabled if it's running on Linux, yet the
> default config is for when running on Windows.
The usbcore code is pretty confused about changing configurations.
As I recall, it doesn't even bother unbinding drivers from the
first configuration's interfaces when it sets a new config, so
it's just accidental if it works safely (no drivers bound yet,
no urbs in progresss, and so on).
- Dave
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2002-10-08 21:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-08 7:32 /sbin/hotplug invocation for USB devices in 2.5.40 Greg KH
2002-10-08 17:02 ` David Brownell
2002-10-08 17:49 ` Patrick Mochel
2002-10-08 17:55 ` Oliver Neukum
2002-10-08 18:14 ` David Brownell
2002-10-08 18:18 ` Oliver Neukum
2002-10-08 18:18 ` Greg KH
2002-10-08 18:25 ` Greg KH
2002-10-08 21:00 ` David Brownell
2002-10-08 21:17 ` Greg KH
2002-10-08 21:18 ` David Brownell [this message]
2002-10-08 21:28 ` David Brownell
2002-10-08 21:39 ` Greg KH
2002-10-09 15:15 ` David Brownell
2002-10-10 20:35 ` Greg KH
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=marc-linux-hotplug-103411189719753@msgid-missing \
--to=david-b@pacbell.net \
--cc=linux-hotplug@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).