diff options
| author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2022-09-11 09:04:34 +0000 |
|---|---|---|
| committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2022-09-11 10:21:16 +0000 |
| commit | 975407b1d8dcceac2b54e2c4df96aadec7dc4c3a (patch) | |
| tree | 34c0d51c5861966ff9f3034e7046b2222d9adcc1 | |
| parent | 8d7ee2047c5e8b4db51c682aee4161ebfd1238e5 (diff) | |
usbhid(4): Increase probe priority to BUS_PROBE_DEFAULT + 1
usbhid(4) vs other USB HID drivers precedence is determined by
hw.usb.usbhid.enable loader tunable and HID quirk subsystem rather
than by device_probe() return value. Raise priority high enough to
always give usbhid(4) a possible chance to attach.
Fixes usbhid(4) attachment on USB device hotplug.
Reported by: Ivan Quitschal <tezeka_AT_hotmail_DOT_com>
MFC after: 1 week
| -rw-r--r-- | sys/dev/usb/input/usbhid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/input/usbhid.c b/sys/dev/usb/input/usbhid.c index fe53f11b8f40..174e1c28ae96 100644 --- a/sys/dev/usb/input/usbhid.c +++ b/sys/dev/usb/input/usbhid.c @@ -802,7 +802,7 @@ usbhid_probe(device_t dev) if (hid_test_quirk(&sc->sc_hw, HQ_HID_IGNORE)) return (ENXIO); - return (BUS_PROBE_GENERIC + 1); + return (BUS_PROBE_DEFAULT + 1); } static int |
