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/dist Report an error when return -ENOD...
details: https://anonhg.NetBSD.org/src/rev/500988604a5e
branches: trunk
changeset: 342447:500988604a5e
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Dec 22 14:29:28 2015 +0000
description:
Report an error when return -ENODEV for the unsupported setup.
diffstat:
sys/external/bsd/dwc2/dist/dwc2_hcd.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r d94013f86b00 -r 500988604a5e sys/external/bsd/dwc2/dist/dwc2_hcd.c
--- a/sys/external/bsd/dwc2/dist/dwc2_hcd.c Tue Dec 22 14:27:51 2015 +0000
+++ b/sys/external/bsd/dwc2/dist/dwc2_hcd.c Tue Dec 22 14:29:28 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2_hcd.c,v 1.16 2015/08/30 12:59:59 skrll Exp $ */
+/* $NetBSD: dwc2_hcd.c,v 1.17 2015/12/22 14:29:28 skrll Exp $ */
/*
* hcd.c - DesignWare HS OTG Controller host-mode routines
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2_hcd.c,v 1.16 2015/08/30 12:59:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2_hcd.c,v 1.17 2015/12/22 14:29:28 skrll Exp $");
#include <sys/types.h>
#include <sys/kmem.h>
@@ -396,8 +396,11 @@
u32 hprt0 = DWC2_READ_4(hsotg, HPRT0);
u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT;
- if (prtspd == HPRT0_SPD_FULL_SPEED)
+ if (prtspd == HPRT0_SPD_FULL_SPEED) {
+ dev_err(hsotg->dev,
+ "DWC OTG HCD URB Enqueue unsupported\n");
return -ENODEV;
+ }
}
if (!qtd)
Home |
Main Index |
Thread Index |
Old Index