Module Name:    src
Committed By:   msaitoh
Date:           Wed Apr 17 08:07:40 UTC 2013

Modified Files:
        src/sys/dev/pci: pci_subr.c

Log Message:
 Don't check whether PCIe Slot Control Register is all 0 or not.
For example, 82801I PCI Express Port #1 (devid 0x2940) is really
Root Port and it has the Root Control Register and the default
value is 0 (the document say so and really 0 (Tested with my
machine)).


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/dev/pci/pci_subr.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/pci/pci_subr.c
diff -u src/sys/dev/pci/pci_subr.c:1.101 src/sys/dev/pci/pci_subr.c:1.102
--- src/sys/dev/pci/pci_subr.c:1.101	Wed Apr 17 06:31:15 2013
+++ src/sys/dev/pci/pci_subr.c	Wed Apr 17 08:07:40 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_subr.c,v 1.101 2013/04/17 06:31:15 msaitoh Exp $	*/
+/*	$NetBSD: pci_subr.c,v 1.102 2013/04/17 08:07:40 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1997 Zubin D. Dittia.  All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.101 2013/04/17 06:31:15 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.102 2013/04/17 08:07:40 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -1094,8 +1094,7 @@ pci_conf_print_pcie_cap(const pcireg_t *
 	    (reg & PCI_PCIE_LCSR_LINK_AUTO_BW) != 0 ? "on" : "off");
 
 	/* XXX Is this check right? */
-	if ((check_slot == true)
-	    && ((regs[o2i(capoff + 0x18)] & 0x07ff) != 0)) {
+	if (check_slot == true) {
 		/* Slot Capability Register */
 		reg = regs[o2i(capoff + PCI_PCIE_SLCAP)];
 		printf("    Slot Capability Register: %08x\n", reg);

Reply via email to