Thread (15 messages) 15 messages, 2 authors, 17d ago

Re: [PATCH 6/7] i2c: nomadik: add quirks max_len=2047 and no_zero_len_read

From: Linus Walleij <linusw@kernel.org>
Date: 2026-06-24 22:55:50
Also in: linux-arm-kernel, linux-i2c, lkml

On Tue, Jun 23, 2026 at 6:32 PM Dmitry Guzman
[off-list ref] wrote:
In Nomadik I2c controller, register I2C_MCR has 11-bit wide LENGTH
field. Its maximum value is 2047, so this is the maximum length of a
single message. It is less than the common maximum I2C message length in
I2C subsystem (8192), so define a quirk in order to report the
unsupported message without any attempt to transfer it.

Zero length reading doesn't work properly on this controller, so add
`I2C_AQ_NO_ZERO_LEN_READ` quirk flag.

Signed-off-by: Dmitry Guzman <redacted>
Excellent improvements, almost a Fixes: patch.
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help