MLK-17357-2 lpi2c: Add bus busy error handling
authorYe Li <ye.li@nxp.com>
Wed, 10 Jan 2018 08:42:39 +0000 (02:42 -0600)
committerYe Li <ye.li@nxp.com>
Wed, 10 Jan 2018 09:08:15 +0000 (03:08 -0600)
commit6b4021d04c7f637fd60cf73f9cc46fdebc853790
treee7e49e9a5612421be6406ab1a41bbe8747a545cb
parente3aa5b1ea468f60b798c9eea9abf18e6019b126b
MLK-17357-2 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>
drivers/i2c/imx_lpi2c.c