Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Consistently use cached chipset tag value.



details:   https://anonhg.NetBSD.org/src/rev/bee9df48e20b
branches:  trunk
changeset: 373220:bee9df48e20b
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Tue Jan 24 08:40:46 2023 +0000

description:
Consistently use cached chipset tag value.

diffstat:

 sys/dev/pci/ehci_pci.c |  6 +++---
 sys/dev/pci/xhci_pci.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 861ed496711a -r bee9df48e20b sys/dev/pci/ehci_pci.c
--- a/sys/dev/pci/ehci_pci.c    Tue Jan 24 08:34:18 2023 +0000
+++ b/sys/dev/pci/ehci_pci.c    Tue Jan 24 08:40:46 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci_pci.c,v 1.75 2022/10/28 21:56:44 riastradh Exp $  */
+/*     $NetBSD: ehci_pci.c,v 1.76 2023/01/24 08:40:46 mlelstv Exp $    */
 
 /*
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.75 2022/10/28 21:56:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.76 2023/01/24 08:40:46 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -196,7 +196,7 @@
         * Allocate IRQ
         */
        intrstr = pci_intr_string(pc, sc->sc_pihp[0], intrbuf, sizeof(intrbuf));
-       pci_intr_setattr(pa->pa_pc, &sc->sc_pihp[0], PCI_INTR_MPSAFE, true);
+       pci_intr_setattr(pc, &sc->sc_pihp[0], PCI_INTR_MPSAFE, true);
        sc->sc_ih = pci_intr_establish_xname(pc, sc->sc_pihp[0], IPL_USB,
            ehci_intr, sc, device_xname(self));
        if (sc->sc_ih == NULL) {
diff -r 861ed496711a -r bee9df48e20b sys/dev/pci/xhci_pci.c
--- a/sys/dev/pci/xhci_pci.c    Tue Jan 24 08:34:18 2023 +0000
+++ b/sys/dev/pci/xhci_pci.c    Tue Jan 24 08:40:46 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci_pci.c,v 1.32 2022/10/28 21:57:58 riastradh Exp $  */
+/*     $NetBSD: xhci_pci.c,v 1.33 2023/01/24 08:45:47 mlelstv Exp $    */
 /*     OpenBSD: xhci_pci.c,v 1.4 2014/07/12 17:38:51 yuo Exp   */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.32 2022/10/28 21:57:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.33 2023/01/24 08:45:47 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_xhci_pci.h"
@@ -229,7 +229,7 @@
        }
        intrstr = pci_intr_string(pc, psc->sc_pihp[0], intrbuf,
            sizeof(intrbuf));
-       pci_intr_setattr(pa->pa_pc, &psc->sc_pihp[0], PCI_INTR_MPSAFE, true);
+       pci_intr_setattr(pc, &psc->sc_pihp[0], PCI_INTR_MPSAFE, true);
        psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pihp[0], IPL_USB,
            xhci_intr, sc, device_xname(sc->sc_dev));
        if (psc->sc_ih == NULL) {



Home | Main Index | Thread Index | Old Index