i2c: mxs: handle spurious interrupt
authorWolfram Sang <w.sang@pengutronix.de>
Thu, 5 Apr 2012 14:15:24 +0000 (16:15 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 25 Apr 2012 20:59:44 +0000 (22:59 +0200)
commitc95eeae9e39314273bcda057f27100603d333518
tree52ab3eee720240c6556d803574d9bee53f47d06f
parent096407136769ec10690abe1baba092abcb763662
i2c: mxs: handle spurious interrupt

After an error interrupt setting cmd->err, I see another interrupt that
the data engine is empty which clears cmd->err before being processed.
So, clear cmd->err at the beginning of a transfer only to handle these
consecutive interrupts.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-mxs.c