]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:25 +0000 (12:26 +0200)
commitde149ef681dd9f4a8cbbd3176a9ed0bd14806c5d
tree0b4b451b0449d90f1423e071cc841e4b712458fa
parent84f35dc7f1dad4a6b09af83a0a8dd5402c81d1b9
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