Re: [PATCH 5/8] i2c: nomadik: add quirks max_len=2047 and no_zero_len_read

From: Linus Walleij

Date: Thu Nov 05 2026 - 03:41:12 EST


On Tue, Nov 3, 2026 at 9:29 AM Dmitry Guzman <Dmitry.Guzman@xxxxxxxxxxxx> 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@xxxxxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij