Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Flush memory correctly during ring put.
details: https://anonhg.NetBSD.org/src/rev/c6a8092cb9fb
branches: trunk
changeset: 345530:c6a8092cb9fb
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Tue May 31 09:22:11 2016 +0000
description:
Flush memory correctly during ring put.
See PR 51199.
>From Sprow, ok skrll@.
diffstat:
sys/dev/usb/xhci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r acec09f245b9 -r c6a8092cb9fb sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c Tue May 31 08:24:43 2016 +0000
+++ b/sys/dev/usb/xhci.c Tue May 31 09:22:11 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xhci.c,v 1.46 2016/05/10 15:14:03 pooka Exp $ */
+/* $NetBSD: xhci.c,v 1.47 2016/05/31 09:22:11 mlelstv Exp $ */
/*
* Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.46 2016/05/10 15:14:03 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.47 2016/05/31 09:22:11 mlelstv Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -2559,7 +2559,7 @@
}
xhci_trb_put(&xr->xr_trb[xr->xr_ep], parameter, status, control);
- usb_syncmem(&xr->xr_dma, XHCI_TRB_SIZE * ri, XHCI_TRB_SIZE * 1,
+ usb_syncmem(&xr->xr_dma, XHCI_TRB_SIZE * xr->xr_ep, XHCI_TRB_SIZE * 1,
BUS_DMASYNC_PREWRITE);
xr->xr_cookies[xr->xr_ep] = cookie;
Home |
Main Index |
Thread Index |
Old Index