HID: i2c-hid: Ignore input report if there's no data present on Elan touchpanels
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 7 Jan 2019 07:24:29 +0000 (15:24 +0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 21 Jan 2019 09:46:18 +0000 (10:46 +0100)
commit1475af255e18f35dc46f8a7acc18354c73d45149
treec700d6974a5f7d89db992e5673975ceff9cc3a8a
parentcf26057a9441173ad552e90cea3344607075c9ad
HID: i2c-hid: Ignore input report if there's no data present on Elan touchpanels

While using Elan touchpads, the message floods:
[  136.138487] i2c_hid i2c-DELL08D6:00: i2c_hid_get_input: incomplete report (14/65535)

Though the message flood is annoying, the device it self works without
any issue. I suspect that the device in question takes too much time to
pull the IRQ back to high after I2C host has done reading its data.

Since the host receives all useful data, let's ignore the input report
when there's no data.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/i2c-hid/i2c-hid-core.c