Skip to contentSkip to conversation

PATCH: LM87 read retry tuning

PATCH David Knierim 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

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

chips/lm87.c 2004-10-15 14:47:20.000000000 -0400 renamed from chips/lm87.c.orig 2004-10-10 08:03:48.000000000 -0400 +2 -1
@@ -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;
 }
 
#1 lore raw
Quoted 12 lines

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

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

chips/lm87.c 2004-10-15 14:47:20.000000000 -0400 line 501

Quoted 10 lines
chips/lm87.c 2004-10-15 14:47:20.000000000 -0400 renamed from chips/lm87.c.orig 2004-10-10 08:03:48.000000000 -0400 +2 -1
   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;
 }

Looks like your e-mail client breaks patches, it won't apply. Please either reconfigure it, change clients or provide the patch as an attachement.

Thanks.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/