Re: [PATCH ] i2c: omap: recover from Bus Busy condition

From: Shubhrajyoti
Date: Tue Oct 25 2011 - 09:09:50 EST


On Monday 24 October 2011 12:40 PM, Rajeev kumar wrote:
On 10/24/2011 12:21 PM, Shubhrajyoti D wrote:
From: Vikram Pandita<vikram.pandita@xxxxxx>

In case a peripheral is holding the DATA bus low, provide a 400Khz
constant clock output using the TEST register.

Also soft reset the I2C controller so that there is no stale state
left in the HW state machine.

A WARN_ON() will be generated when a BB timeout happens.

Signed-off-by: Vikram Pandita<vikram.pandita@xxxxxx>
Signed-off-by: Shubhrajyoti D<shubhrajyoti@xxxxxx>
---
drivers/i2c/busses/i2c-omap.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)


Reviewed-by: Rajeev Kumar <rajeev-dlh.kumar@xxxxxx>

Thanks for your review.


~Rajeev

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/