• Jim Broadus's avatar
    HID: i2c-hid: Fix Elan touchpad regression · 78653706
    Jim Broadus authored
    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>
    78653706
i2c-hid-core.c 28.6 KB