summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/uhci_pci.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-03-20 21:57:54 +0000
committerthompsa <thompsa@FreeBSD.org>2009-03-20 21:57:54 +0000
commitca147f2b35e362c05c7b73c7b8b6c6fc58a69744 (patch)
tree6fbd12d5f67db5e9aab7afad8815466e2de7d1f5 /sys/dev/usb/controller/uhci_pci.c
parent79c72751b7f97009077ff9f01b67a0794ce358eb (diff)
downloadFreeBSD-src-ca147f2b35e362c05c7b73c7b8b6c6fc58a69744.zip
FreeBSD-src-ca147f2b35e362c05c7b73c7b8b6c6fc58a69744.tar.gz
MFp4 //depot/projects/usb @159479,159502,159516,159522,159529
Workaround for buggy USB hardware not handling new SETUP packet before STATUS stage is complete, this allows xfers to endpoint0 to return a short frame. Submitted by: Hans Petter Selasky Reported by: me
Diffstat (limited to 'sys/dev/usb/controller/uhci_pci.c')
-rw-r--r--sys/dev/usb/controller/uhci_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/uhci_pci.c b/sys/dev/usb/controller/uhci_pci.c
index 379841b..50a049c 100644
--- a/sys/dev/usb/controller/uhci_pci.c
+++ b/sys/dev/usb/controller/uhci_pci.c
@@ -323,10 +323,10 @@ uhci_pci_attach(device_t self)
#if (__FreeBSD_version >= 700031)
err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
- NULL, (void *)(void *)uhci_interrupt, sc, &sc->sc_intr_hdl);
+ NULL, (driver_intr_t *)uhci_interrupt, sc, &sc->sc_intr_hdl);
#else
err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
- (void *)(void *)uhci_interrupt, sc, &sc->sc_intr_hdl);
+ (driver_intr_t *)uhci_interrupt, sc, &sc->sc_intr_hdl);
#endif
if (err) {
OpenPOWER on IntegriCloud