projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd423dd
)
usb: dwc3: ep0: add a default case for SetFeature command
author
Gerard Cauvy
<g-cauvy1@ti.com>
Fri, 16 Mar 2012 14:20:10 +0000
(16:20 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 10 Apr 2012 16:11:31 +0000
(19:11 +0300)
Without this default case returning an error,
thus replying with a stall, we would fail
USB30CV TD 9.11 Bad Feature test case.
Cc: stable@vger.kernel.org
Signed-off-by: Gerard Cauvy <g-cauvy1@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/ep0.c
b/drivers/usb/dwc3/ep0.c
index da43131be0e7fbc0dab2b0939808bcc1c6b4aaf1..3584a169886f3dfa23b8513c3850dd71f71e22e0 100644
(file)
--- a/
drivers/usb/dwc3/ep0.c
+++ b/
drivers/usb/dwc3/ep0.c
@@
-353,6
+353,9
@@
static int dwc3_ep0_handle_feature(struct dwc3 *dwc,
dwc->test_mode_nr = wIndex >> 8;
dwc->test_mode = true;
+ break;
+ default:
+ return -EINVAL;
}
break;