Commit 3b6f4e292cbdd46c03303a20417e0c05ddb73bda
Committed by
Greg Kroah-Hartman
1 parent
3f0dfa11cc
Exists in
smarct4x-processor-sdk-04.01.00.06
and in
1 other branch
HID: ignore Petzl USB headlamp
[ Upstream commit 08f9572671c8047e7234cbf150869aa3c3d59a97 ] This headlamp contains a dummy HID descriptor which pretends to be a mouse-like device, but can't be used as a mouse at all. Reported-by: Lukas Ocilka <lukas.ocilka@suse.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff
drivers/hid/hid-core.c
... | ... | @@ -2484,6 +2484,7 @@ |
2484 | 2484 | { HID_USB_DEVICE(USB_VENDOR_ID_PANJIT, 0x0002) }, |
2485 | 2485 | { HID_USB_DEVICE(USB_VENDOR_ID_PANJIT, 0x0003) }, |
2486 | 2486 | { HID_USB_DEVICE(USB_VENDOR_ID_PANJIT, 0x0004) }, |
2487 | + { HID_USB_DEVICE(USB_VENDOR_ID_PETZL, USB_DEVICE_ID_PETZL_HEADLAMP) }, | |
2487 | 2488 | { HID_USB_DEVICE(USB_VENDOR_ID_PHILIPS, USB_DEVICE_ID_PHILIPS_IEEE802154_DONGLE) }, |
2488 | 2489 | { HID_USB_DEVICE(USB_VENDOR_ID_POWERCOM, USB_DEVICE_ID_POWERCOM_UPS) }, |
2489 | 2490 | #if IS_ENABLED(CONFIG_MOUSE_SYNAPTICS_USB) |
drivers/hid/hid-ids.h
... | ... | @@ -819,6 +819,9 @@ |
819 | 819 | #define USB_VENDOR_ID_PETALYNX 0x18b1 |
820 | 820 | #define USB_DEVICE_ID_PETALYNX_MAXTER_REMOTE 0x0037 |
821 | 821 | |
822 | +#define USB_VENDOR_ID_PETZL 0x2122 | |
823 | +#define USB_DEVICE_ID_PETZL_HEADLAMP 0x1234 | |
824 | + | |
822 | 825 | #define USB_VENDOR_ID_PHILIPS 0x0471 |
823 | 826 | #define USB_DEVICE_ID_PHILIPS_IEEE802154_DONGLE 0x0617 |
824 | 827 |