Commit 0297baa
Desnes Nunes
i2c: tiny-usb: disable zero-length read messages
JIRA: https://issues.redhat.com/browse/RHEL-116016
Conflicts:
* This avoids 664e69d ("i2c: tiny-usb: reword according to newest
specification") that renames master_xfer in the usb_algorithm struct.
This MR focuses on the USB protocol violation and thus avoids all the
i2c rewording changes, which should come all in a separate i2c MR.
Furthermore, RHEL9 also does not have commit a93c2e5 ("i2c: reword
i2c_algorithm according to newest specification")
commit cbdb25c
Author: Wolfram Sang <wsa+renesas@sang-engineering.com>
Date: Thu, 22 May 2025 08:43:49 +0200
This driver passes the length of an i2c_msg directly to
usb_control_msg(). If the message is now a read and of length 0, it
violates the USB protocol and a warning will be printed. Enable the
I2C_AQ_NO_ZERO_LEN_READ quirk for this adapter thus forbidding 0-length
read messages altogether.
Fixes: e8c76ee ("i2c: New i2c-tiny-usb bus driver")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: <stable@vger.kernel.org> # v2.6.22+
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250522064349.3823-2-wsa+renesas@sang-engineering.com
Signed-off-by: Desnes Nunes <desnesn@redhat.com>1 parent a862c74 commit 0297baa
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
249 | 254 | | |
250 | 255 | | |
251 | 256 | | |
| 257 | + | |
252 | 258 | | |
253 | 259 | | |
254 | 260 | | |
| |||
0 commit comments