Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/dwc2 Add a missing usb_syncmem(... BUS_DMAS...
details: https://anonhg.NetBSD.org/src/rev/0e6a3e4f9671
branches: trunk
changeset: 819435:0e6a3e4f9671
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Dec 04 16:59:49 2016 +0000
description:
Add a missing usb_syncmem(... BUS_DMASYNC_PRE{READ,WRITE}) for the
transfer buffer
diffstat:
sys/external/bsd/dwc2/dwc2.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r cf06634779f8 -r 0e6a3e4f9671 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c Sun Dec 04 16:40:43 2016 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c Sun Dec 04 16:59:49 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.c,v 1.44 2016/08/14 14:42:22 skrll Exp $ */
+/* $NetBSD: dwc2.c,v 1.45 2016/12/04 16:59:49 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.44 2016/08/14 14:42:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.45 2016/12/04 16:59:49 skrll Exp $");
#include "opt_usb.h"
@@ -1012,6 +1012,10 @@
dwc2_urb->usbdma = &xfer->ux_dmabuf;
dwc2_urb->buf = KERNADDR(dwc2_urb->usbdma, 0);
dwc2_urb->dma = DMAADDR(dwc2_urb->usbdma, 0);
+
+ usb_syncmem(&xfer->ux_dmabuf, 0, len,
+ dir == UE_DIR_IN ?
+ BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
}
dwc2_urb->length = len;
dwc2_urb->flags = flags;
Home |
Main Index |
Thread Index |
Old Index