RES: RES: RES: usb mouse not work on boot

From: Ivan Quitschal <tezeka_at_hotmail.com>
Date: Mon, 20 May 2024 10:24:38 UTC

> -----Mensagem original-----
> De: owner-freebsd-current@FreeBSD.org <owner-freebsd-
> current@FreeBSD.org> Em nome de Dag-Erling Smørgrav
> Enviada em: segunda-feira, 20 de maio de 2024 06:01
> Para: Ivan Quitschal <tezeka@hotmail.com>
> Cc: Vladimir Kondratyev <vladimir@kondratyev.su>; Warner Losh
> <imp@bsdimp.com>; Oleksandr Kryvulia <shuriku@shurik.kiev.ua>; FreeBSD
> Current <freebsd-current@freebsd.org>
> Assunto: Re: RES: RES: usb mouse not work on boot
> 
> Ivan Quitschal <tezeka@hotmail.com> writes:
> > > Ivan Quitschal <tezeka@hotmail.com> writes:
> > > > 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);  }
> > > You realize this diff does nothing at all, right?
> > Yeap, i also said it worked in 14-current old code only ,and has more
> > than 2 years already
> 
> No, I mean all this does is add a comment.  It has no effect on the code.
> 
> DES
> --
> Dag-Erling Smørgrav - des@FreeBSD.org


Oh ok,, sorry

But actually it did change one return for another 

Usbhid.ko used to return this 
return (BUS_PROBE_GENERIC + 1);

and ums.ko used to take place instead , messing up our multimedia kbds and all
Was a priority issue when it shouldn’t matter

Then Vladmir changed to this
return (BUS_PROBE_DEFAULT + 1);  

and everything went to "voilaaaa" 

😊
sorry for the miss communication
regards

tzk