Skip to content

Commit

Permalink
usb: dwc3: ep0: add a default case for SetFeature command
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gerard Cauvy authored and Felipe Balbi committed Apr 10, 2012
1 parent cd423dd commit ecb0779
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ecb0779

Please sign in to comment.