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 (correctly) mentioned.
Wolfram -- Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry
signature.asc
Description: Digital signature
_______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c
