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

From: Rajeev kumar
Date: Mon Oct 24 2011 - 03:11:09 EST


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>


~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/