]> git.sur5r.net Git - u-boot/commit
lpi2c: Add bus busy error handling
authorYe Li <ye.li@nxp.com>
Sun, 8 Jul 2018 03:46:43 +0000 (11:46 +0800)
committerHeiko Schocher <hs@denx.de>
Thu, 12 Jul 2018 09:09:42 +0000 (11:09 +0200)
commit971490c89251ae1a4a9e2a85911de5c217a4027c
treeb65d173cf523807e21353a3230cfabff8a01e081
parentd144f61ad3faa2104676791af58c2371729bef94
lpi2c: Add bus busy error handling

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@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/imx_lpi2c.c