]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: imx: Simplify stopped state tracking
authorEsben Haabendal <eha@deif.com>
Thu, 16 Aug 2018 08:43:13 +0000 (10:43 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Aug 2018 09:13:16 +0000 (11:13 +0200)
commitd3002370a853feceae72101ecec7ed62910537c2
tree186d7f1f92fb209b3d799c3fb4f8ee769d26b106
parentf4e8dc39b9691ec1ecb57d91dfa6e6f297284580
i2c: imx: Simplify stopped state tracking

Always update the stopped state when busy status have been checked.
This is identical to what was done before, with the exception of error
handling.
Without this change, some errors cause the stopped state to be left in
incorrect state in i2c_imx_stop(), i2c_imx_dma_read(), i2c_imx_read() and
i2c_imx_xfer().

Signed-off-by: Esben Haabendal <eha@deif.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c