]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:15 +0000 (13:40 +0200)
commite84a72f6962180ff76343b49f9389b1f314e0123
tree888549c0cfe85b03f8b4258f2f3c0c56e2894c24
parent253bac6c60ad317c805d3061aa813b74b8692b2a
HID: i2c-hid: Fix Elan touchpad regression

[ Upstream commit 786537063bbfb3a7ebc6fc21b2baf37fb91df401 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/i2c-hid/i2c-hid-core.c