diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2009-03-20 21:57:54 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2009-03-20 21:57:54 +0000 |
commit | 0f7d454847cdc2b21e099a3000234d798c7d300a (patch) | |
tree | 6fbd12d5f67db5e9aab7afad8815466e2de7d1f5 /sys/dev/usb/controller/ohci_pci.c | |
parent | 781d043cc7aff676ddf53260c4129e5f75a7cc86 (diff) | |
download | src-0f7d454847cdc2b21e099a3000234d798c7d300a.tar.gz src-0f7d454847cdc2b21e099a3000234d798c7d300a.zip |
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
Notes
Notes:
svn path=/head/; revision=190183
Diffstat (limited to 'sys/dev/usb/controller/ohci_pci.c')
-rw-r--r-- | sys/dev/usb/controller/ohci_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/ohci_pci.c b/sys/dev/usb/controller/ohci_pci.c index fec8acdbf578..d41df6988fda 100644 --- a/sys/dev/usb/controller/ohci_pci.c +++ b/sys/dev/usb/controller/ohci_pci.c @@ -289,10 +289,10 @@ ohci_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 *)ohci_interrupt, sc, &sc->sc_intr_hdl); + NULL, (driver_intr_t *)ohci_interrupt, sc, &sc->sc_intr_hdl); #else err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, - (void *)(void *)ohci_interrupt, sc, &sc->sc_intr_hdl); + (driver_intr_t *)ohci_interrupt, sc, &sc->sc_intr_hdl); #endif if (err) { device_printf(self, "Could not setup irq, %d\n", err); |