From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] usb.agent should processes usermap before other maps.
Date: Thu, 18 Jul 2002 17:19:25 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-102701259230044@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-102696506820116@msgid-missing>
>> If hci_usb shouldn't be claiming specific devices, it's simple
>> to teach it not to do so.
>
> Yeah, I was gonna do that anyway because processing usermap first
> doesn't help
> when driver is already loaded.
> I thought it might be nice if USB core could do that ie something like
> USB_IGNORE_DEVICE(xxx, yyy) in the driver id_table. But Johannes
> pointed out
> that it probably won't be useful for other drivers.
And #defining such a thing (a good example of when not to use
inline functions :) in your driver means you get to change how
it works later. Like if someday you want a single "declare device"
macro you can call in two different modes (build your own table
with lots of quirk/status handling, or a usb_device_id table),
you can change how you use the driver_info (flags --> pointer).
> I was gonna say that it would not work but then I noticed that
> it's actually fixed in 2002.04.01.
> usb.agent that came with RH 7.2 was doing
> if [ "$FOUND" = "false" -a -r $MAP_USERMAP ];
> Which means that usermap won't be processed if kernel driver exists
> for this device, even if driver ignores these particular ids.
Right, that was a bug. I don't recall the context where it made
trouble; maybe it was similar to yours.
> I didn't notice that you guys got rid of FOUND = false check in
> latest usb.agent. Now that this check isn't there it should work
> correctly if driver ignores pre-fw ids.
Bug reports help move Linux forward ... and patches too. :)
- 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-07-18 17:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 3:59 [PATCH] usb.agent should processes usermap before other maps Maksim (Max) Krasnyanskiy
2002-07-18 5:35 ` David Brownell
2002-07-18 16:49 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-07-18 17:19 ` David Brownell [this message]
2002-07-18 17:47 ` Maksim (Max) Krasnyanskiy
2002-07-18 17:51 ` [PATCH] usb.agent should processes usermap before other maps Johannes Erdfelt
2002-07-18 20:17 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-07-18 20:55 ` [PATCH] usb.agent should processes usermap before other maps David Brownell
2002-07-18 21:40 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-07-18 21:49 ` [PATCH] usb.agent should processes usermap before other maps David Brownell
2002-07-18 22:03 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-07-18 23:03 ` [PATCH] usb.agent should processes usermap before other maps David Brownell
2002-07-18 23:47 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-08-09 18:22 ` [PATCH] usb.agent should processes usermap before other maps David Brownell
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-102701259230044@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).