i2c: rk3x: fix interrupt handling issue
authoraddy ke <addy.ke@rock-chips.com>
Fri, 8 Aug 2014 09:41:40 +0000 (17:41 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 8 Aug 2014 16:33:57 +0000 (18:33 +0200)
commit9c5f7cad3acc69ce623d04d646950183a759949e
treea7b296ddeba2a4d4f0d37a4e3194900df9f49868
parent64bdfbfc76999ab0dd7da0db7b2edea4f73ed228
i2c: rk3x: fix interrupt handling issue

If slave holds scl, I2C_IPD[7] will be set 1 by controller
for debugging. Driver must ignore it.

[    5.752391] rk3x-i2c ff160000.i2c: unexpected irq in WRITE: 0x80
[    5.939027] rk3x-i2c ff160000.i2c: timeout, ipd: 0x80, state: 4

Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-rk3x.c