Hello Peng,

Am 08.07.2018 um 05:46 schrieb Peng Fan:
From: Ye Li <ye...@nxp.com>

When doing "i2c dev 4; i2c probe" with ENET daughter card connected
on iMX8QXP MEK board, we met a i2c bus busy issue, that the BBF of
lpi2c always show busy, but the master is idle, and stop is detected
(SDF set).

This patch addes a handling to re-init the lpi2c master for this
case. Then the issue can be worked around.

Signed-off-by: Ye Li <ye...@nxp.com>
Acked-by: Peng Fan <peng....@nxp.com>
Reviewed-by: Heiko Schocher <h...@denx.de>
---

V2: Add review tag.
Heiko, I have no idea why the busy show, from the bus, we measured it
is idle, but the controller bit shows busy. We followed Linux kernel's
method to reinit the bus and all works.

  drivers/i2c/imx_lpi2c.c | 53 +++++++++++++++++++++++++++++--------------------
  1 file changed, 32 insertions(+), 21 deletions(-)

Applied to u-boot-i2c.git master

Thanks!

bye,
Heiko
--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: h...@denx.de
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to