Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Increase the number of read retries (to 5).



details:   https://anonhg.NetBSD.org/src/rev/258c3e05c898
branches:  trunk
changeset: 342864:258c3e05c898
user:      jdc <jdc%NetBSD.org@localhost>
date:      Mon Jan 11 18:23:52 2016 +0000

description:
Increase the number of read retries (to 5).

diffstat:

 sys/dev/i2c/adm1026.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 6c25698432be -r 258c3e05c898 sys/dev/i2c/adm1026.c
--- a/sys/dev/i2c/adm1026.c     Mon Jan 11 18:23:11 2016 +0000
+++ b/sys/dev/i2c/adm1026.c     Mon Jan 11 18:23:52 2016 +0000
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adm1026.c,v 1.1 2015/12/16 07:56:48 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adm1026.c,v 1.2 2016/01/11 18:23:52 jdc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -492,7 +492,7 @@
 static int
 adm1026_read_reg(struct adm1026_softc *sc, uint8_t reg, uint8_t *val)
 {
-#define ADM1026_READ_RETRIES   4
+#define ADM1026_READ_RETRIES   5
        int i, j, err = 0;
        uint8_t creg, cval, tmp[ADM1026_READ_RETRIES + 1];
 



Home | Main Index | Thread Index | Old Index