[PATCH 5/8] i2c: nomadik: add quirks max_len=2047 and no_zero_len_read
Linus Walleij
linusw at kernel.org
Thu Nov 5 00:40:27 PST 2026
On Tue, Nov 3, 2026 at 9:29 AM Dmitry Guzman <Dmitry.Guzman at mobileye.com> 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 <Dmitry.Guzman at mobileye.com>
Reviewed-by: Linus Walleij <linusw at kernel.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list