Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecb07797 authored by Gerard Cauvy's avatar Gerard Cauvy Committed by Felipe Balbi
Browse files

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: default avatarGerard Cauvy <g-cauvy1@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent cd423dd3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;