Fix for "nomatch" event for ums and ukbd drivers when uhid is loaded.
MFC after: 3 days
This commit is contained in:
parent
e164f9285f
commit
2b71135edc
@ -634,6 +634,18 @@ uhid_probe(device_t dev)
|
||||
if (usb_test_quirk(uaa, UQ_HID_IGNORE))
|
||||
return (ENXIO);
|
||||
|
||||
/*
|
||||
* Don't attach to mouse and keyboard devices, hence then no
|
||||
* "nomatch" event is generated and then ums and ukbd won't
|
||||
* attach properly when loaded.
|
||||
*/
|
||||
if ((uaa->info.bInterfaceClass == UICLASS_HID) &&
|
||||
(uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) &&
|
||||
((uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD) ||
|
||||
(uaa->info.bInterfaceProtocol == UIPROTO_MOUSE))) {
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
return (BUS_PROBE_GENERIC);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user