UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitfd219f74f1fe1cddf84aac1e902f61e7df2b6de5
tree9e6f918129a4a8ec46df7fdaf55fa0bbe332a1a7
parent8d3ce12d172e1fa2d90827535e281df7a3792b1a
UPSTREAM: 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.

Change-Id: Iaf6a0ae78864efa342a514fdd5e6fc7f2e94e314
Signed-off-by: Fei Yang <fei.yang@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit ae411413760785a0a2ce6cb44d5afe95115aa24d)
drivers/usb/dwc3/ep0.c