summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-10-28 21:56:44 +0000
committerriastradh <riastradh@NetBSD.org>2022-10-28 21:56:44 +0000
commit0a0cb3426f65eb6807abcbb81a23aa9aa2480b9b (patch)
tree03e6f3f687c877a5f780ee84e25f87f0e3e44556 /sys/dev
parent39e4c30fe80e0aba2faa9eb3ff3f9931f95e2918 (diff)
ehci(4): Mark PCI interrupt handler MP-safe.
ehci_intr has its own intr lock to coordinate with the MP-safe softint it defers all its work to, other than reading and writing a few registers to get and acknowledge the interrupt status.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/ehci_pci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/ehci_pci.c b/sys/dev/pci/ehci_pci.c
index f494b906293..03cd88f11c3 100644
--- a/sys/dev/pci/ehci_pci.c
+++ b/sys/dev/pci/ehci_pci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci_pci.c,v 1.74 2022/03/13 11:29:21 riastradh Exp $ */
+/* $NetBSD: ehci_pci.c,v 1.75 2022/10/28 21:56:44 riastradh 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.74 2022/03/13 11:29:21 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.75 2022/10/28 21:56:44 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -196,6 +196,7 @@ ehci_pci_attach(device_t parent, device_t self, void *aux)
* 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);
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) {