From: Gerard Cauvy Date: Fri, 16 Mar 2012 14:20:10 +0000 (+0200) Subject: usb: dwc3: ep0: add a default case for SetFeature command X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ecb07797ffc1c2aaa2e58d1ba1b5deea44ea5b9e;p=deliverable%2Flinux.git usb: dwc3: ep0: add a default case for SetFeature command 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index da43131be0e7..3584a169886f 100644 --- 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;