i2c: i2c-sh_mobile: fix spurious transfer request timed out
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Wed, 24 Oct 2012 10:58:31 +0000 (19:58 +0900)
committerWolfram Sang <w.sang@pengutronix.de>
Fri, 16 Nov 2012 08:09:13 +0000 (09:09 +0100)
commit29fb08c300b5cb626b8a803440aab25d0983cab7
tree334d4d82d2788c22e98f75e53ba9be4aa1416ada
parentebd5ac165f2aaefb767c53112c2010b0ff3df688
i2c: i2c-sh_mobile: fix spurious transfer request timed out

Ensure that any of preceding register write operations to the I2C
hardware block reached the module, and the write data is reflected
in the registers, before leaving the interrupt handler.

Otherwise, we'll suffer from spurious WAIT interrupts that lead to
'Transfer request timed out' message, and the transaction failed.

Reported-by: Teppei Kamijou <teppei.kamijou.yb@renesas.com>
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-sh_mobile.c