]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:30:06 +0000 (12:30 +0300)
commit6b74289937f624439c87135cfabb3deb2955fb53
tree33b8048dc63f61713f19dd880700fab10b2333de
parentb43bba96b9036e42b2c2c71ee15e1f77b0b37aec
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.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c