RES: RES: usb mouse not work on boot

From: Ivan Quitschal <tezeka_at_hotmail.com>
Date: Sat, 18 May 2024 18:39:02 UTC
Not sure, im on 14-current because of my synergy  insists on crashing  after version synergy-1.14.0.4,3
But that's pretty simple to check

Just do a
# grep 'return (BUS_PROBE_' /user/src/sys/dev/usb/input/usbhid.c in your own kernel source tree to see what line is there

Thanks

Ivan


De: owner-freebsd-current@FreeBSD.org <owner-freebsd-current@FreeBSD.org> Em nome de Oleksandr Kryvulia
Enviada em: sábado, 18 de maio de 2024 15:29
Para: freebsd-current@freebsd.org
Assunto: Re: RES: usb mouse not work on boot

18.05.24 19:29, Ivan Quitschal:

Hi Warner /  WBR / Oleksandr

Im not sure if that's the case with this uhid.ko, but you guys remember I had a priority issue with this module and Vladimir made me a patch to fix the attach priority?

Warner, was it fixed since then?


Let me show the patch I use to this very day important line is this, the patch might be wrong , because im still on 14-current

+//     return (BUS_PROBE_GENERIC + 1);
        return (BUS_PROBE_DEFAULT + 1);



diff --git a/sys/dev/usb/input/usbhid.c b/sys/dev/usb/input/usbhid.c
index 174e1c28ae96..7b19d713c943 100644
--- a/sys/dev/usb/input/usbhid.c
+++ b/sys/dev/usb/input/usbhid.c
@@ -802,6 +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);
}


If I correctly understand this patch alredy in main with 975407b1d8dcceac2b54e2c4df96aadec7dc4c3a