summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller
diff options
context:
space:
mode:
authormmel <mmel@FreeBSD.org>2016-04-05 12:13:53 +0000
committermmel <mmel@FreeBSD.org>2016-04-05 12:13:53 +0000
commitb3e10c44bfab84f30421f64b3eb9725657aee089 (patch)
tree832dd93dab62fbaec9489c752cc8034f4c6c57dc /sys/dev/usb/controller
parentcd0a56084a275f3cde65b91113b86571749bf425 (diff)
downloadFreeBSD-src-b3e10c44bfab84f30421f64b3eb9725657aee089.zip
FreeBSD-src-b3e10c44bfab84f30421f64b3eb9725657aee089.tar.gz
ehci_interrupt is MPSAFE code. Most drivers in tree calls bus_setup_intr
with MPSAFE, some are not. Fix those. Submitted by: Howard Su <howard0su@gmail.com> Differential Revision: https://reviews.freebsd.org/D5755
Diffstat (limited to 'sys/dev/usb/controller')
-rw-r--r--sys/dev/usb/controller/ehci_fsl.c2
-rw-r--r--sys/dev/usb/controller/ehci_imx.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/controller/ehci_fsl.c b/sys/dev/usb/controller/ehci_fsl.c
index ed6c25937..7db642e 100644
--- a/sys/dev/usb/controller/ehci_fsl.c
+++ b/sys/dev/usb/controller/ehci_fsl.c
@@ -294,7 +294,7 @@ fsl_ehci_attach(device_t self)
}
/* Setup interrupt handler */
- err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO,
+ err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
NULL, (driver_intr_t *)ehci_interrupt, sc, &sc->sc_intr_hdl);
if (err) {
device_printf(self, "Could not setup irq, %d\n", err);
diff --git a/sys/dev/usb/controller/ehci_imx.c b/sys/dev/usb/controller/ehci_imx.c
index 4473ebc..07f7310 100644
--- a/sys/dev/usb/controller/ehci_imx.c
+++ b/sys/dev/usb/controller/ehci_imx.c
@@ -261,8 +261,8 @@ imx_ehci_attach(device_t dev)
}
/* Setup interrupt handler. */
- err = bus_setup_intr(dev, sc->ehci_irq_res, INTR_TYPE_BIO, NULL,
- (driver_intr_t *)ehci_interrupt, esc, &esc->sc_intr_hdl);
+ err = bus_setup_intr(dev, sc->ehci_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
+ NULL, (driver_intr_t *)ehci_interrupt, esc, &esc->sc_intr_hdl);
if (err != 0) {
device_printf(dev, "Could not setup IRQ\n");
goto out;
OpenPOWER on IntegriCloud