]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82b9ee92be9b2063000b70f677bd2e6a883fd94d
tree8d2bd8606661d799cc8ae0fb26dc7c2acca42283
parent7ac39958606ac2e7ff13e78122f2b97e1c7dcbed
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: 832d6038652f (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