diff options
author | Niels Skou Olsen <nolsen@jabra.com> | 2017-10-04 12:29:57 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-11-21 12:54:58 +0100 |
commit | d5158e020c45936d0ea5a1ce1e49a45da6e76f44 (patch) | |
tree | af2e5652b8943ddd5dc23a0d6c2343b88e00f9c9 /drivers/hid/usbhid | |
parent | HID: core: remove the absolute need of hid_have_special_driver[] (diff) | |
download | linux-d5158e020c45936d0ea5a1ce1e49a45da6e76f44.tar.xz linux-d5158e020c45936d0ea5a1ce1e49a45da6e76f44.zip |
HID: Ignore Jabra HID interface based on firmware version
Two Jabra speakerphone devices were added to the ignore list in 2013,
because the device HID interfaces didn't work well with kernel usbhid
driver, and could cause volume key event storm.
See the original commit:
Commit 31b9779cb292 ("HID: ignore Jabra speakerphones HID interface")
Modify hid_lookup_quirk() to consider the firmware version of these two
devices, so that only versions older than a known good version are
ignored.
Signed-off-by: Niels Skou Olsen <nolsen@jabra.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index cd1ccb6b90c9..77c50cdfff97 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -1327,6 +1327,7 @@ static int usbhid_probe(struct usb_interface *intf, const struct usb_device_id * hid->bus = BUS_USB; hid->vendor = le16_to_cpu(dev->descriptor.idVendor); hid->product = le16_to_cpu(dev->descriptor.idProduct); + hid->version = le16_to_cpu(dev->descriptor.bcdDevice); hid->name[0] = 0; if (intf->cur_altsetting->desc.bInterfaceProtocol == USB_INTERFACE_PROTOCOL_MOUSE) |