usb: dwc3: ep0: sanity check test mode selector
authorFei Yang <fei.yang@intel.com>
Wed, 20 Apr 2016 06:08:43 +0000 (09:08 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 28 Apr 2016 06:01:34 +0000 (09:01 +0300)
commitae411413760785a0a2ce6cb44d5afe95115aa24d
tree8ee76804466800a5612d64377cd2d747121afd9a
parent818ec3aba883f58225c9f5a2318cf373263869ed
usb: dwc3: ep0: sanity check test mode selector

In case host sends us an unsupported test mode, we
*must* stall this request. This will tell the host
that the selector is invalid and we won't put the
controller in unsupported test modes which could
have undetermined side-effects.

Signed-off-by: Fei Yang <fei.yang@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/ep0.c