Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2024 13:20:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 282144] usb mouse incorrectly attaches to keyboard driver
Message-ID:  <bug-282144-19105-hRoZ4PWFfx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-282144-19105@https.bugs.freebsd.org/bugzilla/>
References:  <bug-282144-19105@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282144

--- Comment #6 from fjpavon <fjpavon@gmail.com> ---
I was investigating and i thin that the issue is related to the value of the
field bInterfaceProtocol

I get the value running the command usbconfig -d <id> dump_all_desc

>From a usb mouse that is working and using the ums driver
bInterfaceProtocol =3D 0x0002

>From the mouse with the kbd driver
bInterfaceProtocol =3D 0x0001

In the ums.c file the function ums_prove has the following check
        if ((uaa->info.bInterfaceSubClass =3D=3D UISUBCLASS_BOOT) &&
            (uaa->info.bInterfaceProtocol =3D=3D UIPROTO_MOUSE))
                return (BUS_PROBE_DEFAULT);

It comparing the value of uaa->info.bInterfaceProtocol with the constant
UIPROTO_MOUSE.=20
The contstant is defined in usb.h=20
#define UIPROTO_MOUSE           2

Can be the reason of the wrong assignment of the driver?

Thanks and kind regards

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282144-19105-hRoZ4PWFfx>