Hello Fedor,
On 30.07.24 17:25, fedorr...@gmail.com wrote:
From: Fedor Ross <fedor.r...@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.r...@ifm.com>
---
Cc: Heiko Schocher <h...@denx.de>
Cc: Tom Rini <tr...@konsulko.com>
Cc: Marek Vasut <ma...@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 <h...@denx.de>
Thanks!
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de