All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH: LM87 read retry tuning
@ 2005-05-19  6:25 David Knierim
  2005-05-19  6:25 ` Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: David Knierim @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors



This is a tiny patch to tune the lm87 read retry failure loop that was
recently added.  On my board, if I got one retry failure, I always got
3, so I increased the amount of delay before a retry.

David Knierim



--- kernel/chips/lm87.c.orig  2004-10-10 08:03:48.000000000 -0400
+++ kernel/chips/lm87.c 2004-10-15 14:47:20.000000000 -0400
@@ -492,10 +492,11 @@

   printk(KERN_WARNING "lm87.o: Read byte data failed, "
          "address 0x%02x\n", reg);
-           mdelay(i);
+           mdelay(i + 3);
  }

  /* <TODO> what to return in case of error? */
+     printk(KERN_ERR "lm87.o: All read byte retries failed!!\n");
  return 0;
 }




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-19  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:25 PATCH: LM87 read retry tuning David Knierim
2005-05-19  6:25 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.