Commit 931dc97
committed
i2c: i801: Fix a refactoring that broke a touchpad on Lenovo P1
JIRA: https://issues.redhat.com/browse/RHEL-47426
commit d1ef7a9
Author: Maxim Levitsky <mlevitsk@redhat.com>
Date: Thu Mar 21 10:19:19 2024 -0400
i2c: i801: Fix a refactoring that broke a touchpad on Lenovo P1
Commit 857cc04 ("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: 857cc04 ("i2c: i801: Add helper i801_get_block_len")
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: David Arcari <darcari@redhat.com>1 parent 147d5bf commit 931dc97
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
542 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
543 | 544 | | |
| 545 | + | |
544 | 546 | | |
545 | | - | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
| |||
0 commit comments