i2c-bfin-twi: fix lost interrupts at high speeds
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 22 Mar 2010 07:23:18 +0000 (03:23 -0400)
committerBen Dooks <ben-linux@fluff.org>
Wed, 19 May 2010 23:18:58 +0000 (00:18 +0100)
commit5481d0753e7a78bff7550a8165b7924baa74e9cf
treed73b29d04e152042eaa353e9c66988d56a527379
parent5cfafc18f38aa6701f581bee875fb0b19f3b3b4b
i2c-bfin-twi: fix lost interrupts at high speeds

i2c event of next read/write byte may trigger before current int state
is cleared in the interrupt handler. So, this should be done at the
beginning of interrupt handler to avoid losing new i2c events.

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>
drivers/i2c/busses/i2c-bfin-twi.c