Date: Sun, 11 Sep 2022 10:24:46 GMT From: Vladimir Kondratyev <wulf@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 975407b1d8dc - main - usbhid(4): Increase probe priority to BUS_PROBE_DEFAULT + 1 Message-ID: <202209111024.28BAOkBw028384@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=975407b1d8dcceac2b54e2c4df96aadec7dc4c3a commit 975407b1d8dcceac2b54e2c4df96aadec7dc4c3a Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2022-09-11 09:04:34 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2022-09-11 10:21:16 +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. Reported by: Ivan Quitschal <tezeka_AT_hotmail_DOT_com> MFC after: 1 week --- 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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209111024.28BAOkBw028384>