Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Set device transfer status to USBD_IN_PROGR...
details: https://anonhg.NetBSD.org/src/rev/5159109bc0ee
branches: nick-nhusb
changeset: 804731:5159109bc0ee
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Dec 28 10:44:27 2016 +0000
description:
Set device transfer status to USBD_IN_PROGRESS if start methods succeeds
diffstat:
sys/dev/usb/ohci.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r 7ce67d98a5ed -r 5159109bc0ee sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Wed Dec 28 10:42:59 2016 +0000
+++ b/sys/dev/usb/ohci.c Wed Dec 28 10:44:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.254.2.83 2016/12/27 08:33:08 skrll Exp $ */
+/* $NetBSD: ohci.c,v 1.254.2.84 2016/12/28 10:44:27 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.83 2016/12/27 08:33:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.84 2016/12/28 10:44:27 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -2960,6 +2960,7 @@
DPRINTF("done", 0, 0, 0, 0);
+ xfer->ux_status = USBD_IN_PROGRESS;
mutex_exit(&sc->sc_lock);
return USBD_IN_PROGRESS;
@@ -3171,6 +3172,8 @@
callout_reset(&xfer->ux_callout, mstohz(xfer->ux_timeout),
ohci_timeout, xfer);
}
+
+ xfer->ux_status = USBD_IN_PROGRESS;
mutex_exit(&sc->sc_lock);
return USBD_IN_PROGRESS;
@@ -3359,6 +3362,7 @@
usb_syncmem(&sed->dma, sed->offs, sizeof(sed->ed),
BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD);
+ xfer->ux_status = USBD_IN_PROGRESS;
mutex_exit(&sc->sc_lock);
return USBD_IN_PROGRESS;
Home |
Main Index |
Thread Index |
Old Index