UPSTREAM: usb: dwc3: gadget: return 0 if we try to Wakeup in superspeed
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 13 May 2016 07:19:42 +0000 (10:19 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit7d57ec8050baac82a48e5b8c073d5a97a6729bf4
tree8a6648bb3f111ed1d4dfdcdbda735ccfdd657b5d
parentdd3e05e0359bac8457538181b9dc2a6330ec0593
UPSTREAM: usb: dwc3: gadget: return 0 if we try to Wakeup in superspeed

Instead of returning -EINVAL when someone calls
__dwc3_gadget_wakeup() in speeds > highspeed, let's
return 0. There are no problems for the driver for
calling it in superspeed as we cleanly just return.

This avoids an annoying WARN_ONCE() always
triggering during superspeed enumeration with LPM
enabled.

Change-Id: Iff35ee46a782684db1c2339ad71a73a303cb3a89
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 6b74289937f624439c87135cfabb3deb2955fb53)
drivers/usb/dwc3/gadget.c