ARM: OMAP: Fix occasional i2c driver hang
authorJason Marini <jason.marini@gmail.com>
Thu, 28 Aug 2008 19:30:58 +0000 (15:30 -0400)
committerTony Lindgren <tony@atomide.com>
Wed, 10 Sep 2008 20:40:11 +0000 (13:40 -0700)
commit62cd232bc55aba47b37538143266cbfd08caa2eb
treeb182e01dd55b2af588aebc00e1cbdf6713607de8
parent4139f42ea612e0ff53a4df41428040f777d0422c
ARM: OMAP: Fix occasional i2c driver hang

The i2c driver contains a while loop that has no timeout.  If i2c is in a
funky state and OMAP_I2C_CON_STT remains asserted, the kernel hangs.  Insert
the standard i2c timeout into the loop.

Signed-off-by: Jason P Marini <jason.marini@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c