Skip to content

Commit 2b0931e

Browse files
acelangregkh
authored andcommitted
HID: quirks: Add quirk for 2 Chicony Electronics HP 5MP Cameras
[ Upstream commit 54bae4c17c11688339eb73a04fd24203bb6e7494 ] The Chicony Electronics HP 5MP Cameras (USB ID 04F2:B824 & 04F2:B82C) report a HID sensor interface that is not actually implemented. Attempting to access this non-functional sensor via iio_info causes system hangs as runtime PM tries to wake up an unresponsive sensor. Add these 2 devices to the HID ignore list since the sensor interface is non-functional by design and should not be exposed to userspace. Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]> Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent d05db2e commit 2b0931e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@
297297
#define USB_DEVICE_ID_ASUS_AK1D 0x1125
298298
#define USB_DEVICE_ID_CHICONY_TOSHIBA_WT10A 0x1408
299299
#define USB_DEVICE_ID_CHICONY_ACER_SWITCH12 0x1421
300+
#define USB_DEVICE_ID_CHICONY_HP_5MP_CAMERA 0xb824
301+
#define USB_DEVICE_ID_CHICONY_HP_5MP_CAMERA2 0xb82c
300302

301303
#define USB_VENDOR_ID_CHUNGHWAT 0x2247
302304
#define USB_DEVICE_ID_CHUNGHWAT_MULTITOUCH 0x0001

drivers/hid/hid-quirks.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static const struct hid_device_id hid_ignore_list[] = {
738738
{ HID_USB_DEVICE(USB_VENDOR_ID_AVERMEDIA, USB_DEVICE_ID_AVER_FM_MR800) },
739739
{ HID_USB_DEVICE(USB_VENDOR_ID_AXENTIA, USB_DEVICE_ID_AXENTIA_FM_RADIO) },
740740
{ HID_USB_DEVICE(USB_VENDOR_ID_BERKSHIRE, USB_DEVICE_ID_BERKSHIRE_PCWD) },
741+
{ HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_HP_5MP_CAMERA) },
742+
{ HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_HP_5MP_CAMERA2) },
741743
{ HID_USB_DEVICE(USB_VENDOR_ID_CIDC, 0x0103) },
742744
{ HID_USB_DEVICE(USB_VENDOR_ID_CYGNAL, USB_DEVICE_ID_CYGNAL_RADIO_SI470X) },
743745
{ HID_USB_DEVICE(USB_VENDOR_ID_CYGNAL, USB_DEVICE_ID_CYGNAL_RADIO_SI4713) },

0 commit comments

Comments
 (0)