summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/at91dci_atmelarm.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2014-08-13 06:59:40 +0000
committerhselasky <hselasky@FreeBSD.org>2014-08-13 06:59:40 +0000
commit1f00e71a086bbfbf45e11e566d1b9ba1bf9d4a36 (patch)
treedd23cf93d8b0f5bbcf51520e4d3a2131f1a77784 /sys/dev/usb/controller/at91dci_atmelarm.c
parentc23d83944448c52e9e02585d718543e5a4eaf809 (diff)
downloadFreeBSD-src-1f00e71a086bbfbf45e11e566d1b9ba1bf9d4a36.zip
FreeBSD-src-1f00e71a086bbfbf45e11e566d1b9ba1bf9d4a36.tar.gz
MFC r269604:
- Implement fast interrupt handler to save CPU usage. - Cleanup some register reads and writes to use existing register access macros. - Ensure code which only applies to the control endpoint is not run for other endpoints in the data transfer path.
Diffstat (limited to 'sys/dev/usb/controller/at91dci_atmelarm.c')
-rw-r--r--sys/dev/usb/controller/at91dci_atmelarm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/at91dci_atmelarm.c b/sys/dev/usb/controller/at91dci_atmelarm.c
index cbadbb2..8ea4ef9 100644
--- a/sys/dev/usb/controller/at91dci_atmelarm.c
+++ b/sys/dev/usb/controller/at91dci_atmelarm.c
@@ -212,8 +212,8 @@ at91_udp_attach(device_t dev)
}
device_set_ivars(sc->sc_dci.sc_bus.bdev, &sc->sc_dci.sc_bus);
- err = bus_setup_intr(dev, sc->sc_dci.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
- NULL, (driver_intr_t *)at91dci_interrupt, sc, &sc->sc_dci.sc_intr_hdl);
+ err = bus_setup_intr(dev, sc->sc_dci.sc_irq_res, INTR_TYPE_TTY | INTR_MPSAFE,
+ at91dci_filter_interrupt, at91dci_interrupt, sc, &sc->sc_dci.sc_intr_hdl);
if (err) {
sc->sc_dci.sc_intr_hdl = NULL;
goto error;
OpenPOWER on IntegriCloud