git: bee14272ae84 - stable/13 - usbhid(4): Increase probe priority to BUS_PROBE_DEFAULT + 1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Dec 2022 08:37:06 UTC
The branch stable/13 has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=bee14272ae84f38b312728c59ebe7a74d3d50ba1
commit bee14272ae84f38b312728c59ebe7a74d3d50ba1
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2022-09-11 09:04:34 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2022-12-24 08:33:27 +0000
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.
(cherry picked from commit 975407b1d8dcceac2b54e2c4df96aadec7dc4c3a)
---
sys/dev/usb/input/usbhid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/usb/input/usbhid.c b/sys/dev/usb/input/usbhid.c
index 3b7886f0fada..af30ded6bbb1 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