diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-03-20 21:57:54 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-03-20 21:57:54 +0000 |
commit | ca147f2b35e362c05c7b73c7b8b6c6fc58a69744 (patch) | |
tree | 6fbd12d5f67db5e9aab7afad8815466e2de7d1f5 /sys/dev/usb/controller/uhci_pci.c | |
parent | 79c72751b7f97009077ff9f01b67a0794ce358eb (diff) | |
download | FreeBSD-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.c | 4 |
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) { |