summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/controller
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-01-13 19:02:07 +0000
committerthompsa <thompsa@FreeBSD.org>2009-01-13 19:02:07 +0000
commitc816ff223bc9dd6bbcf64bc1bec3c945cbc5dcb6 (patch)
tree0260f4821485a35461c47a0e57e3eed38bd7ec04 /sys/dev/usb2/controller
parent0c97153d4a67ece03c7a217bea16821a0d44b2a3 (diff)
downloadFreeBSD-src-c816ff223bc9dd6bbcf64bc1bec3c945cbc5dcb6.zip
FreeBSD-src-c816ff223bc9dd6bbcf64bc1bec3c945cbc5dcb6.tar.gz
MFp4: //depot/projects/usb@155759
Optimise: Remove extra flush calls. Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb2/controller')
-rw-r--r--sys/dev/usb2/controller/ohci2.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb2/controller/ohci2.c b/sys/dev/usb2/controller/ohci2.c
index 99076d4..723e834 100644
--- a/sys/dev/usb2/controller/ohci2.c
+++ b/sys/dev/usb2/controller/ohci2.c
@@ -1558,13 +1558,12 @@ ohci_setup_standard_chain(struct usb2_xfer *xfer, ohci_ed_t **ed_last)
}
ed->ed_flags = htole32(ed_flags);
- usb2_pc_cpu_flush(ed->page_cache);
-
td = xfer->td_transfer_first;
ed->ed_headp = td->td_self;
if (xfer->udev->pwr_save.suspended == 0) {
+ /* the append function will flush the endpoint descriptor */
OHCI_APPEND_QH(ed, *ed_last);
if (methods == &ohci_device_bulk_methods) {
@@ -2009,13 +2008,12 @@ ohci_device_isoc_enter(struct usb2_xfer *xfer)
}
ed->ed_flags = htole32(ed_flags);
- usb2_pc_cpu_flush(ed->page_cache);
-
td = xfer->td_transfer_first;
ed->ed_headp = td->itd_self;
/* isochronous transfers are not affected by suspend / resume */
+ /* the append function will flush the endpoint descriptor */
OHCI_APPEND_QH(ed, sc->sc_isoc_p_last);
}
OpenPOWER on IntegriCloud