]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
HID: i2c-hid: Fix flooded incomplete report after S3 on Rayd touchscreen
authorAceLan Kao <acelan.kao@canonical.com>
Thu, 13 Sep 2018 08:03:00 +0000 (10:03 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 13:16:28 +0000 (15:16 +0200)
BugLink: https://bugs.launchpad.net/bugs/1792309
The incomplete report flooded after S3 and touchscreen becomes
malfunctioned.
[ 1367.646244] i2c_hid i2c-CUST0000:00: i2c_hid_get_input: incomplete report (58/18785)
[ 1367.649471] i2c_hid i2c-CUST0000:00: i2c_hid_get_input: incomplete report (58/28743)
[ 1367.651092] i2c_hid i2c-CUST0000:00: i2c_hid_get_input: incomplete report (58/26757)
[ 1367.652658] i2c_hid i2c-CUST0000:00: i2c_hid_get_input: incomplete report (58/52280)
[ 1367.654287] i2c_hid i2c-CUST0000:00: i2c_hid_get_input: incomplete report (58/56059)

Adding device ID, 04F3:30CC, to the quirk to re-send report description
after resume.

Cc: stable@vger.kernel.org
Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(backported from commit fb6acf76c3fdd97fea6995e64e2c665725f00fc5)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/hid/hid-ids.h
drivers/hid/i2c-hid/i2c-hid.c

index 04edd5e11644b0ad0bab878dcef40ed743a09f4d..7c53ba5662412029239279f3d0e61d29bbd3ebe0 100644 (file)
 
 #define I2C_VENDOR_ID_RAYD             0x2386
 #define I2C_PRODUCT_ID_RAYD_3118       0x3118
+#define I2C_PRODUCT_ID_RAYD_4B33       0x4B33
 
 #define USB_VENDOR_ID_HANWANG          0x0b57
 #define USB_DEVICE_ID_HANWANG_TABLET_FIRST     0x5000
index 9397c365117f328e831bbac4bf10200f8823fbe0..3785843bc08983737561f091f20c0461e4d669b4 100644 (file)
@@ -174,6 +174,8 @@ static const struct i2c_hid_quirks {
                I2C_HID_QUIRK_NO_IRQ_AFTER_RESET },
        { I2C_VENDOR_ID_RAYD, I2C_PRODUCT_ID_RAYD_3118,
                I2C_HID_QUIRK_RESEND_REPORT_DESCR },
+       { I2C_VENDOR_ID_RAYD, I2C_PRODUCT_ID_RAYD_4B33,
+               I2C_HID_QUIRK_RESEND_REPORT_DESCR },
        { USB_VENDOR_ID_SIS_TOUCH, USB_DEVICE_ID_SIS10FB_TOUCH,
                I2C_HID_QUIRK_RESEND_REPORT_DESCR },
        { 0, 0 }