Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't check whether PCIe Slot Control Register i...



details:   https://anonhg.NetBSD.org/src/rev/02339d2f1215
branches:  trunk
changeset: 786147:02339d2f1215
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Apr 17 08:07:40 2013 +0000

description:
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)).

diffstat:

 sys/dev/pci/pci_subr.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r df1716624131 -r 02339d2f1215 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c    Wed Apr 17 06:31:15 2013 +0000
+++ b/sys/dev/pci/pci_subr.c    Wed Apr 17 08:07:40 2013 +0000
@@ -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 @@
            (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);



Home | Main Index | Thread Index | Old Index