Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/dwc2 At least attempt to handle USBD_DEFAUL...
details: https://anonhg.NetBSD.org/src/rev/d8a55d9da5f4
branches: trunk
changeset: 790304:d8a55d9da5f4
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Oct 02 22:53:23 2013 +0000
description:
At least attempt to handle USBD_DEFAULT_INTERVAL.
diffstat:
sys/external/bsd/dwc2/dwc2.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 1021f9bacccd -r d8a55d9da5f4 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c Wed Oct 02 22:48:51 2013 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c Wed Oct 02 22:53:23 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.c,v 1.9 2013/10/02 22:48:51 skrll Exp $ */
+/* $NetBSD: dwc2.c,v 1.10 2013/10/02 22:53:23 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.9 2013/10/02 22:48:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.10 2013/10/02 22:53:23 skrll Exp $");
#include "opt_usb.h"
@@ -1333,9 +1333,12 @@
dwc2_urb->status = -EINPROGRESS;
dwc2_urb->packet_count = xfer->nframes;
- if (xfertype == UE_INTERRUPT)
- dwc2_urb->interval = dpipe->pipe.interval;
- else if (xfertype == UE_ISOCHRONOUS)
+ if (xfertype == UE_INTERRUPT) {
+ if (dpipe->pipe.interval == USBD_DEFAULT_INTERVAL)
+ dwc2_urb->interval = ed->bInterval;
+ else
+ dwc2_urb->interval = dpipe->pipe.interval;
+ } else if (xfertype == UE_ISOCHRONOUS)
dwc2_urb->interval = ed->bInterval;
/* XXXNH bring down from callers?? */
Home |
Main Index |
Thread Index |
Old Index