Re: [PATCH v2 2/5] i2c: designware: Optimize flag reading in i2c_dw_read()
From: Andy Shevchenko
Date: Fri Oct 31 2025 - 10:49:01 EST
On Fri, Oct 31, 2025 at 03:35:40PM +0100, Benoît Monin wrote:
> Optimize the i2c_dw_read() function by reading the message flags only
> once per message, rather than for every byte.
>
> The message index is only modified by the outer loop, so reading the
> flags in the inner loop was always getting the same value.
Does it affect the binary (compiled) file?
--
With Best Regards,
Andy Shevchenko