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/dc84fc0dab75
branches:  thorpej-i2c-spi-conf
changeset: 378789:dc84fc0dab75
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 f77f2a713130 -r dc84fc0dab75 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 @@ spdmem_i2c_match(device_t parent, cfdata
        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 @@ spdmem_i2c_match(device_t parent, cfdata
                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