commit | 73dba8d14409a52f00d42f9dbbb49b93a0301204 | [log] [tgz] |
---|---|---|
author | Sonic Zhang <sonic.zhang@analog.com> | Fri Oct 22 10:05:27 2010 +0000 |
committer | Mike Frysinger <vapier@gentoo.org> | Sat Oct 15 14:29:43 2011 -0400 |
tree | 4460eda3d95954a9bd9b196e1f89e4e973d53169 | |
parent | d0f732a732744d1b2c03555837ba76b4ea81c923 [diff] |
i2c-bfin-twi: add a timeout to busbusy polling Some faulty i2c slave devices might hold the sda/scl line and cause the i2c bus driver to wait indefinitely in the busbusy loop. Add a timeout to the loop so the bus master can recover without locking up everything. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>