use_generic and usb probing
avg at FreeBSD.org
Tue Apr 5 11:06:27 UTC 2011
on 03/04/2011 13:46 Andriy Gapon said the following:
> Mostly out of curiosity (but not only because of that) I wonder why the
> use_generic flag and two probing passes are needed in USB driver probing code.
> That is, why the standard approach of using different probing return values
> (e.g. BUS_PROBE_DEFAULT, BUS_PROBE_GENERIC, etc) wouldn't work here.
I couldn't find any historic reason for this, so I am assuming that this is a
kludge to work-around inconsistent return values in various USB "newbus" probe
Please see here my attempt at cleaning up the basics:
Reviews and testing are welcome.
A side-effect of this patch is removal of a minor annoyance in a form of the
Unknown USB device: vendor <> product <> bus <>
The message is produced by devd almost any time anything is connected via USB
thanks to (1) a nomatch USB entry in the default devd.conf; (2) use_generic=0
probing pass in USB.
More information about the freebsd-usb