diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2011-06-23 17:07:54 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2011-06-27 23:06:48 +0100 |
commit | 4a65163e3b2190445c1d94daa21d09c5af604d97 (patch) | |
tree | b70b2f85cfbbc2885b7338d04223de00986dc141 /drivers/i2c/i2c-core.c | |
parent | af4087e0e682df12bdffec5cfafc2fec9208716e (diff) |
i2c-bfin-twi: abort transfer is MEM bit is reset unexpectedly
Sometimes, the first I2C transmit interrupt is not serviced in time (like
when higher priority interrupts take too long). Since the RESTART bit is
not set before the next I2C clock, when the TWI handler is finally called,
the I2C session is aborted (MEM bit is reset) and both SMITSERV and MCOMP
int status bits are set.
So when this happens, abort the transfer.
Reported-by: Isabelle Leonardi <i.leonardi@detracom.fr>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/i2c/i2c-core.c')
0 files changed, 0 insertions, 0 deletions