
Hello Fedor,
On 30.07.24 17:25, fedorross@gmail.com wrote:
From: Fedor Ross fedor.ross@ifm.com
The TXFIFO register of LPI2C only has one byte length, and if the length of the data that needs to be read exceeds 256 bytes, it needs to be written to TXFIFO multiple times.
Signed-off-by: Fedor Ross fedor.ross@ifm.com
Cc: Heiko Schocher hs@denx.de Cc: Tom Rini trini@konsulko.com Cc: Marek Vasut marex@denx.de
Changes in v2:
Add additional '---' below SoB line to separate Cc list. This way it does not get included in the commit message when the patch is applied.
Prefix 'CHUNK_DATA' macro with 'LPI2C_' to namespace it.
Do bit manipulation in writel() function directly and drop the 'val = assignment' .
drivers/i2c/imx_lpi2c.c | 71 ++++++++++++++++++++++++++--------------- 1 file changed, 46 insertions(+), 25 deletions(-)
Reviewed-by: Heiko Schocher hs@denx.de
Thanks!
bye, Heiko