From c816ff223bc9dd6bbcf64bc1bec3c945cbc5dcb6 Mon Sep 17 00:00:00 2001 From: thompsa Date: Tue, 13 Jan 2009 19:02:07 +0000 Subject: MFp4: //depot/projects/usb@155759 Optimise: Remove extra flush calls. Submitted by: Hans Petter Selasky --- sys/dev/usb2/controller/ohci2.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/dev/usb2/controller') 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); } -- cgit v1.1