• Pavel Balan's avatar
    HID: Add quirk for incorrect input length on Lenovo Y720 · fd091376
    Pavel Balan authored
    Apply it to the Lenovo Y720 gaming laptop I2C peripheral then.
    
    This fixes dmesg being flooded with errors visible on un-suspend
    in Linux Mint 19 Cinnamon.
    
    Example of error log:
    
    <...>
    [    4.326588] i2c_hid i2c-ITE33D1:00: i2c_hid_get_input: incomplete report (2/4)
    [    4.326845] i2c_hid i2c-ITE33D1:00: i2c_hid_get_input: incomplete report (2/4)
    [    4.327095] i2c_hid i2c-ITE33D1:00: i2c_hid_get_input: incomplete report (2/4)
    [    4.327341] i2c_hid i2c-ITE33D1:00: i2c_hid_get_input: incomplete report (2/4)
    [    4.327609] i2c_hid i2c-ITE33D1:00: i2c_hid_get_input: incomplete report (2/4)
    <...>
    
    Example of fixed log (debug on)
    
    <...>
    [ 3731.333183] i2c_hid i2c-ITE33D1:00: input: 02 00
    [ 3731.333581] i2c_hid i2c-ITE33D1:00: input: 02 00
    [ 3731.333842] i2c_hid i2c-ITE33D1:00: input: 02 00
    [ 3731.334107] i2c_hid i2c-ITE33D1:00: input: 02 00
    [ 3731.334367] i2c_hid i2c-ITE33D1:00: input: 02 00
    <...>
    
    [jkosina@suse.cz: rebase onto more recent codebase]
    Signed-off-by: default avatarPavel Balan <admin@kryma.net>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    fd091376
i2c-hid-core.c 31.8 KB