diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-08 10:31:31 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-08 10:31:31 +0000 |
commit | 7816a902634cd707722181d6b8dc83d6ac94a953 (patch) | |
tree | 97ec9a48be74e428027c84b05fee41ab4b81a962 /sys | |
parent | 15fdee5c6e630ce567a8c5ead93983c70bf90666 (diff) |
Remove superfluous DMA synchronization now that the stack is doing it for
all HCs.
ok patrick@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/ehci.c | 8 | ||||
-rw-r--r-- | sys/dev/usb/xhci.c | 5 |
2 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 5b5ddbebaff..b1e38923ce3 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ehci.c,v 1.194 2016/10/02 06:36:39 kettenis Exp $ */ +/* $OpenBSD: ehci.c,v 1.195 2016/11/08 10:31:30 mpi Exp $ */ /* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */ /* @@ -3102,9 +3102,6 @@ ehci_device_bulk_done(struct usbd_xfer *xfer) if (xfer->status != USBD_NOMEM) { ehci_free_sqtd_chain(sc, ex); - usb_syncmem(&xfer->dmabuf, 0, xfer->length, - usbd_xfer_isread(xfer) ? - BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE); } } @@ -3265,9 +3262,6 @@ ehci_device_intr_done(struct usbd_xfer *xfer) splx(s); } else if (xfer->status != USBD_NOMEM) { ehci_free_sqtd_chain(sc, ex); - usb_syncmem(&xfer->dmabuf, 0, xfer->length, - usbd_xfer_isread(xfer) ? - BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE); } } diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index 945ab1a5e33..b659b651cc7 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci.c,v 1.69 2016/10/03 14:05:21 mpi Exp $ */ +/* $OpenBSD: xhci.c,v 1.70 2016/11/08 10:31:30 mpi Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -2661,9 +2661,6 @@ xhci_device_generic_start(struct usbd_xfer *xfer) void xhci_device_generic_done(struct usbd_xfer *xfer) { - usb_syncmem(&xfer->dmabuf, 0, xfer->length, usbd_xfer_isread(xfer) ? - BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE); - /* Only happens with interrupt transfers. */ if (xfer->pipe->repeat) { xfer->actlen = 0; |