Source-Changes-HG archive

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

[src/thorpej-i2c-spi-conf]: src/sys/dev/i2c Tweak previous to deal better wit...



details:   https://anonhg.NetBSD.org/src/rev/6f9ce0e4ad56
branches:  thorpej-i2c-spi-conf
changeset: 1020820:6f9ce0e4ad56
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun May 16 22:56:47 2021 +0000

description:
Tweak previous to deal better with "device tree node describes empty
DIMM slot" problem.

diffstat:

 sys/dev/i2c/spdmem_i2c.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r e6ffdd6f9033 -r 6f9ce0e4ad56 sys/dev/i2c/spdmem_i2c.c
--- a/sys/dev/i2c/spdmem_i2c.c  Sun May 16 22:53:57 2021 +0000
+++ b/sys/dev/i2c/spdmem_i2c.c  Sun May 16 22:56:47 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem_i2c.c,v 1.21.4.4 2021/05/16 22:53:57 thorpej Exp $ */
+/* $NetBSD: spdmem_i2c.c,v 1.21.4.5 2021/05/16 22:56:47 thorpej Exp $ */
 
 /*
  * Copyright (c) 2007 Nicolas Joly
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.21.4.4 2021/05/16 22:53:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.21.4.5 2021/05/16 22:56:47 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -243,7 +243,7 @@
        sc.sc_page0 = SPDCTL_SPA0;
        sc.sc_page1 = SPDCTL_SPA1;
        sc.sc_base.sc_read = spdmem_i2c_read;
-       match_result = SPDMEM_HIGH_CONFIDENCE_MATCH;
+       match_result = 0;
 
  do_probe:
        /* Check the bank and reset to the page 0 */
@@ -254,8 +254,6 @@
                if (match_result < SPDMEM_HIGH_CONFIDENCE_MATCH) {
                        match_result = SPDMEM_HIGH_CONFIDENCE_MATCH;
                }
-       } else {
-               match_result = 0;
        }
 
        return match_result;



Home | Main Index | Thread Index | Old Index