[i2c] [PATCH] Add a new-style driver for most I2C EEPROMs
w.sang at pengutronix.de
Fri Apr 18 12:31:49 CEST 2008
On Fri, Apr 18, 2008 at 01:07:51AM -0700, Trent Piepho wrote:
> So the loop tries the write for the first time, fails (which is perfectly
> acceptable), then sleeps for more than timeout jiffies. The timeout
> expires and the write is never tried again.
Ehrm, the conditions for the while loop are OR-ed not AND-ed. So, even if
time_before changes to false, 'retries < 3' will keep the loop running.
I think this minimum of three tries will also cover the other issues you
Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.lm-sensors.org/pipermail/i2c/attachments/20080418/28927ff1/attachment.bin
More information about the i2c