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
This commit is contained in:
parent
4c230cdafd
commit
c520cb4f50
@ -253,8 +253,8 @@ tegra_ehci_attach(device_t dev)
|
||||
}
|
||||
|
||||
/* Setup interrupt handler. */
|
||||
rv = bus_setup_intr(dev, sc->ehci_irq_res, INTR_TYPE_BIO, NULL,
|
||||
(driver_intr_t *)ehci_interrupt, esc, &esc->sc_intr_hdl);
|
||||
rv = 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 (rv != 0) {
|
||||
device_printf(dev, "Could not setup IRQ\n");
|
||||
goto out;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user