Make uhid attach to devices that look like keyboards
or mice if the quirk which prevents higher level drivers from attaching is set. PR: usb/172458 Submitted by: Vitaly Magerya <vmagerya@gmail.com> Reviewed by: hselasky Approved by: cperciva MFC after: 1 week
This commit is contained in:
parent
73ea379e32
commit
68ea9fd7d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241843
@ -691,10 +691,11 @@ uhid_probe(device_t dev)
|
||||
*/
|
||||
if ((uaa->info.bInterfaceClass == UICLASS_HID) &&
|
||||
(uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) &&
|
||||
((uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD) ||
|
||||
(uaa->info.bInterfaceProtocol == UIPROTO_MOUSE))) {
|
||||
(((uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD) &&
|
||||
!usb_test_quirk(uaa, UQ_KBD_IGNORE)) ||
|
||||
((uaa->info.bInterfaceProtocol == UIPROTO_MOUSE) &&
|
||||
!usb_test_quirk(uaa, UQ_UMS_IGNORE))))
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
return (BUS_PROBE_GENERIC);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user