OSDN Git Service

i2c: mxs: do error checking and handling in PIO mode
authorLucas Stach <l.stach@pengutronix.de>
Mon, 15 Apr 2013 00:16:55 +0000 (00:16 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Apr 2013 16:29:58 +0000 (18:29 +0200)
commit92b775c2949287e675fdb3cac96bb0cda64efbfe
tree2e7d17202e52335379e4f2d27e7c147dc2c81fe8
parent535ebd217d38dde481a927f21e6824d8b37bdb28
i2c: mxs: do error checking and handling in PIO mode

In PIO mode we can end up with the same errors as in DMA mode, but as IRQs
are disabled there we have to check for them manually after each command.

Also don't use the big controller reset hammer when receiving a NAK from a
slave. It's sufficient to tell the controller to continue at a clean state.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mxs.c