Re: iichid/hms keyboard/mouse wrongly reattached to uhid/ums

From: Ivan Quitschal <tezeka_at_hotmail.com>
Date: Mon, 27 Jun 2022 17:48:10 UTC

On Mon, 27 Jun 2022, Vladimir Kondratyev wrote:
>
> It seems that usbhid's bus probe priority must be increased from
> BUS_PROBE_GENERIC + 1 to BUS_PROBE_DEFAULT + 1
>
> Test this patch:
>
> diff --git a/sys/dev/usb/input/usbhid.c b/sys/dev/usb/input/usbhid.c
> index fe53f11b8f4..174e1c28ae9 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
>
>
>
> -- 
> WBR
> Vladimir Kondratyev
>


Hi Vladimir,

Looks like the patch did the job. After 5 reboots with 3 detachs each , no 
problem occurred.

looks like its fixed now, in case it happens again ill send another email.

thank you / all

--tzk

PS: i removed all module_loads from loader.conf in order to perform the test