Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb also need to update actlen on ack for split tran...
details: https://anonhg.NetBSD.org/src/rev/e5989b18ea06
branches: trunk
changeset: 783860:e5989b18ea06
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Jan 10 21:50:56 2013 +0000
description:
also need to update actlen on ack for split transfers
diffstat:
sys/dev/usb/dwc_otg.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 80f5a3fecc97 -r e5989b18ea06 sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c Thu Jan 10 21:25:53 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c Thu Jan 10 21:50:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_otg.c,v 1.3 2013/01/10 21:25:53 jmcneill Exp $ */
+/* $NetBSD: dwc_otg.c,v 1.4 2013/01/10 21:50:56 jmcneill Exp $ */
/*-
* Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.3 2013/01/10 21:25:53 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.4 2013/01/10 21:50:56 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -3059,6 +3059,7 @@
if (hcint & HCINT_ACK) {
if (!dwc_otg_host_channel_wait(td))
break;
+ td->actlen += td->tx_bytes;
td->offset += td->tx_bytes;
td->remainder -= td->tx_bytes;
td->toggle ^= 1;
Home |
Main Index |
Thread Index |
Old Index