1 Feb 2010 06:57
RE: [PATCH 6/6] i2c: davinci: bus recovery procedure to clear the bus
Hi Philby, On Wed, Jan 27, 2010 at 05:11:33, Kevin Hilman wrote: > From: Philby John <pjohn@...> > > Come out of i2c time out condition by following the > bus recovery procedure outlined in the i2c protocol v3 spec. > The kernel must be robust enough to gracefully recover > from i2c bus failure without having to reset the machine. > This is done by first NACKing the slave, pulsing the SCL > line 9 times and then sending the stop command. > > This patch has been tested on a DM6446 and DM355 > > Signed-off-by: Philby John <pjohn@...> > Signed-off-by: Srinivasan, Nageswari <nageswari@...> > Acked-by: Kevin Hilman <khilman@...> > --- > drivers/i2c/busses/i2c-davinci.c | 57 +++++++++++++++++++++++++++++++++++-- > 1 files changed, 53 insertions(+), 4 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c > index 35f9daa..5459065 100644 > --- a/drivers/i2c/busses/i2c-davinci.c > +++ b/drivers/i2c/busses/i2c-davinci.c > <at> <at> -36,6 +36,7 <at> <at> > #include <linux/platform_device.h> > #include <linux/io.h> > #include <linux/cpufreq.h> > +#include <linux/gpio.h>(Continue reading)
RSS Feed