Commit e84a72f6 authored by Jim Broadus's avatar Jim Broadus Committed by Greg Kroah-Hartman
Browse files

HID: i2c-hid: Fix Elan touchpad regression



[ Upstream commit 78653706 ]

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: ca66a677 (HID: i2c-hid: Skip ELAN power-on command after reset)
Signed-off-by: default avatarJim Broadus <jbroadus@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 253bac6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment