MLK-14393 i2c: imx-lpi2c: directly retrun ISR when detect a NACK
authorGao Pan <pandy.gao@nxp.com>
Wed, 8 Mar 2017 14:29:22 +0000 (22:29 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:33 +0000 (15:21 -0500)
commitf86a569ab0529402c6742df9513c0380d0bc8849
treec44d1ebf76046ae2e20d7ed6b0a1f6e83b1ddd55
parent983ebba00a2be57e08a491d92ed61d9ea5a7df24
MLK-14393 i2c: imx-lpi2c: directly retrun ISR when detect a NACK

A NACK flag in ISR means i2c bus error. In such codition,
there is no need to do read/write operation. It's better
to return ISR directly and then stop i2c transfer.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from 839d59e48b6fdbd882776a48a88ce26ff14d8b86)
drivers/i2c/busses/i2c-imx-lpi2c.c