Module Name:    src
Committed By:   hannken
Date:           Tue Jul 12 09:45:34 UTC 2016

Modified Files:
        src/sys/dev/acpi: acpi_mcfg.c

Log Message:
According to "PCI Express Base Specification Revision 3.0" from
November 10, 2010, section 7.9.1 an Extended Capability header
with value 0:0:0 represents the absence of Extended Capabilities.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/acpi/acpi_mcfg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/acpi_mcfg.c
diff -u src/sys/dev/acpi/acpi_mcfg.c:1.3 src/sys/dev/acpi/acpi_mcfg.c:1.4
--- src/sys/dev/acpi/acpi_mcfg.c:1.3	Tue Jul 12 09:29:32 2016
+++ src/sys/dev/acpi/acpi_mcfg.c	Tue Jul 12 09:45:34 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi_mcfg.c,v 1.3 2016/07/12 09:29:32 hannken Exp $	*/
+/*	$NetBSD: acpi_mcfg.c,v 1.4 2016/07/12 09:45:34 hannken Exp $	*/
 
 /*-
  * Copyright (C) 2015 NONAKA Kimihiro <[email protected]>
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.3 2016/07/12 09:29:32 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.4 2016/07/12 09:45:34 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -490,7 +490,7 @@ acpimcfg_device_probe(const struct pci_a
 
 	/* Probe extended configuration space. */
 	if (((reg = pci_conf_read(pc, tag, PCI_CONF_SIZE)) == (pcireg_t)-1) ||
-	    (alias = acpimcfg_ext_conf_is_aliased(pc, tag))) {
+	    (reg == 0) || (alias = acpimcfg_ext_conf_is_aliased(pc, tag))) {
 		aprint_debug_dev(acpi_sc->sc_dev,
 		    "MCFG: %03d:%02d:%d: invalid config space "
 		    "(cfg[0x%03x]=0x%08x, alias=%s)\n", bus, dev, func,

Reply via email to