aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb2
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-01-13 19:02:07 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-01-13 19:02:07 +0000
commitabc96a038c758e3b1bebcdd17d2d9e513eee2e2d (patch)
tree0260f4821485a35461c47a0e57e3eed38bd7ec04 /sys/dev/usb2
parent90de96dd021e5021b807efdc589c4b760e49c169 (diff)
Notes
Diffstat (limited to 'sys/dev/usb2')
-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 99076d46c68f..723e83498f11 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);
}