[U-Boot] [PATCH V2 4/4] lpi2c: Add bus busy error handling
Heiko Schocher
hs at denx.de
Thu Jul 12 14:10:27 UTC 2018
Hello Peng,
Am 08.07.2018 um 05:46 schrieb Peng Fan:
> From: Ye Li <ye.li at 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.li at nxp.com>
> Acked-by: Peng Fan <peng.fan at nxp.com>
> Reviewed-by: Heiko Schocher <hs at 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: hs at denx.de
More information about the U-Boot
mailing list