PERFORCE change 159522 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Mar 20 09:25:52 PDT 2009
http://perforce.freebsd.org/chv.cgi?CH=159522
Change 159522 by hselasky at hselasky_laptop001 on 2009/03/20 16:25:06
USB controller:
- make sure that the OHCI picks up the alt_next
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/controller/ohci.c#7 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/controller/ohci.c#7 (text+ko) ====
@@ -1020,6 +1020,23 @@
usb2_pc_cpu_flush(ed->page_cache);
DPRINTFN(13, "xfer=%p following alt next\n", xfer);
+
+ /*
+ * Make sure that the OHCI re-scans the schedule by
+ * writing the BLF and CLF bits:
+ */
+
+ if (xfer->xroot->udev->pwr_save.suspended) {
+ /* nothing to do */
+ } else if (xfer->pipe->methods == &ohci_device_bulk_methods) {
+ ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
+
+ OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_BLF);
+ } else if (xfer->pipe->methods == &ohci_device_ctrl_methods) {
+ ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
+
+ OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_CLF);
+ }
}
}
More information about the p4-projects
mailing list