Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2009 16:25:46 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 159522 for review
Message-ID:  <200903201625.n2KGPkTM099476@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=159522

Change 159522 by hselasky@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);
+		}
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903201625.n2KGPkTM099476>