MLK-14698 imx: lpi2c: fix clock issue when NACK detected
authorGao Pan <pandy.gao@nxp.com>
Fri, 14 Apr 2017 07:51:44 +0000 (15:51 +0800)
committerYe Li <ye.li@nxp.com>
Thu, 20 Apr 2017 05:44:12 +0000 (13:44 +0800)
commit59643c7b34415c6a23e0d73a8aed9145b0220a47
treeb4e07447cb91a382d2c9a10b947c8d14a031b691
parent2c101b1d4cccee4eb711110ea19cf92014cf56d8
MLK-14698 imx: lpi2c: fix clock issue when NACK detected

For LPI2C IP, NACK is detected by the rising edge of the ninth clock.
In current uboot driver, once NACK is detected, it will reset and then
disable LPI2C master. As a result, we can never see the falling edge
of the ninth clock.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry picked from commit dd139ee52b709c95af3e0c968bcbc3cf42cca408)
drivers/i2c/imx_lpi2c.c