[U-Boot] [PATCH 26/41] lpi2c: Add bus busy error handling

Heiko Schocher hs at denx.de
Tue May 29 03:59:37 UTC 2018


Hello Peng,

Am 28.05.2018 um 14:25 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>
> Cc: Heiko Schocher <hs at denx.de>
> ---
>   drivers/i2c/imx_lpi2c.c | 53 +++++++++++++++++++++++++++++--------------------
>   1 file changed, 32 insertions(+), 21 deletions(-)

I have no such hardware, but the question is why is this bus busy shown?

Nevertheless, trying to re init a busy bus, before ginving up, seems
a good attempt to me.

Reviewed-by: Heiko Schocher <hs at denx.de>

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