From: Sonic Zhang Date: Wed, 13 Jun 2012 08:22:42 +0000 (+0800) Subject: i2c: i2c-bfin-twi: Break dead waiting loop if i2c device misbehaves. X-Git-Tag: v3.6-rc1~67^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a25733d6f6968240042ac94dc93c7ae3c9e8d68b;p=pandora-kernel.git i2c: i2c-bfin-twi: Break dead waiting loop if i2c device misbehaves. Some fault i2c device may hold the sda/scl line and cause i2c driver wait in the BUS busy loop. The I2C framework already retry the transfer loop before timeout. Return -EAGAIN instead of pull BUSBUSY in the other loop. Signed-off-by: Sonic Zhang Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed