Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb need to wait for intr in dwc_otg_device_bulk_sta...
details: https://anonhg.NetBSD.org/src/rev/3cde3b293851
branches: trunk
changeset: 783914:3cde3b293851
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jan 12 16:18:42 2013 +0000
description:
need to wait for intr in dwc_otg_device_bulk_start if polling
diffstat:
sys/dev/usb/dwc_otg.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r b20f0b54fb7d -r 3cde3b293851 sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c Sat Jan 12 14:03:42 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c Sat Jan 12 16:18:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_otg.c,v 1.13 2013/01/12 12:41:43 skrll Exp $ */
+/* $NetBSD: dwc_otg.c,v 1.14 2013/01/12 16:18:42 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.13 2013/01/12 12:41:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.14 2013/01/12 16:18:42 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1376,6 +1376,9 @@
}
mutex_exit(&sc->sc_lock);
+ if (sc->sc_bus.use_polling)
+ dwc_otg_waitintr(sc, xfer);
+
return USBD_IN_PROGRESS;
}
Home |
Main Index |
Thread Index |
Old Index