Module Name: src
Committed By: jmcneill
Date: Sat Jan 12 16:18:42 UTC 2013
Modified Files:
src/sys/dev/usb: dwc_otg.c
Log Message:
need to wait for intr in dwc_otg_device_bulk_start if polling
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/usb/dwc_otg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/dwc_otg.c
diff -u src/sys/dev/usb/dwc_otg.c:1.13 src/sys/dev/usb/dwc_otg.c:1.14
--- src/sys/dev/usb/dwc_otg.c:1.13 Sat Jan 12 12:41:43 2013
+++ src/sys/dev/usb/dwc_otg.c Sat Jan 12 16:18:42 2013
@@ -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 @@ dwc_otg_device_bulk_start(usbd_xfer_hand
}
mutex_exit(&sc->sc_lock);
+ if (sc->sc_bus.use_polling)
+ dwc_otg_waitintr(sc, xfer);
+
return USBD_IN_PROGRESS;
}