diff options
author | mmel <mmel@FreeBSD.org> | 2016-04-05 12:13:53 +0000 |
---|---|---|
committer | mmel <mmel@FreeBSD.org> | 2016-04-05 12:13:53 +0000 |
commit | b3e10c44bfab84f30421f64b3eb9725657aee089 (patch) | |
tree | 832dd93dab62fbaec9489c752cc8034f4c6c57dc /sys/dev/usb/controller/ehci_imx.c | |
parent | cd0a56084a275f3cde65b91113b86571749bf425 (diff) | |
download | FreeBSD-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/ehci_imx.c')
-rw-r--r-- | sys/dev/usb/controller/ehci_imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |