Re: [PATCH] i2c: i801: Fix a refactoring that broke a touchpad on Lenovo P1

From: Andi Shyti
Date: Thu Mar 21 2024 - 16:42:55 EST


Hi Maxim,

On Thu, Mar 21, 2024 at 10:19:19AM -0400, Maxim Levitsky wrote:
> Commit 857cc04cdf50 ("i2c: i801: Add helper i801_get_block_len")
> introduced a slight functional change: the status variable is now
> overwritten with the length of an SMBUS tranasaction,
> even in case of success.
>
> This breaks the touchpad on at least my Lenovo P1:
>
> rmi4_physical rmi4-00: Read PDT entry at 0x00e9 failed, code: -6.
> rmi4_physical rmi4-00: RMI initial reset failed! Continuing in spite of this.
> rmi4_physical rmi4-00: Read PDT entry at 0x00e9 failed, code: -6.
> rmi4_physical rmi4-00: IRQ counting failed with code -6.
>
> Fixes: 857cc04cdf50 ("i2c: i801: Add helper i801_get_block_len")
>

next time please drop this blank line here.

Applied to i2c/i2c-host-fixes on

git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git

Thank you,
Andi

Patches applied
===============
[1/1] i2c: i801: Fix a refactoring that broke a touchpad on Lenovo P1
commit: a5894bc48f64caa86dbea1744d067c925303c5fc