HID: i2c-hid: Fix Elan touchpad regression
authorJim Broadus <jbroadus@gmail.com>
Mon, 9 Aug 2021 06:55:05 +0000 (23:55 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Aug 2021 12:51:44 +0000 (14:51 +0200)
commit786537063bbfb3a7ebc6fc21b2baf37fb91df401
tree8d2bd8606661d799cc8ae0fb26dc7c2acca42283
parent87c7ee7ad85afafc00f3ee70a61b0b5421584626
HID: i2c-hid: Fix Elan touchpad regression

A quirk was recently added for Elan devices that has same device match
as an entry earlier in the list. The i2c_hid_lookup_quirk function will
always return the last match in the list, so the new entry shadows the
old entry. The quirk in the previous entry, I2C_HID_QUIRK_BOGUS_IRQ,
silenced a flood of messages which have reappeared in the 5.13 kernel.

This change moves the two quirk flags into the same entry.

Fixes: ca66a6770bd9 (HID: i2c-hid: Skip ELAN power-on command after reset)
Signed-off-by: Jim Broadus <jbroadus@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid-core.c