usb: dwc3: gadget: put link to U0 before Start Transfer
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 4 Apr 2016 09:46:33 +0000 (12:46 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 18 Apr 2016 12:23:42 +0000 (15:23 +0300)
commitc36d8e947a56a6e6478fc48152c5f4626462db55
treedc3f2b9ad069457cc869fe56278cf08332bcdedd
parent218ef7b647e3367c9f81e18f63fbb0066f10b9a5
usb: dwc3: gadget: put link to U0 before Start Transfer

Synopsys Databook says we should move link to U0
before issuing a Start Transfer command. We could
require the gadget driver to call
usb_gadget_wakeup() however I feel that changing all
gadget drivers to keep track of Link State and
conditionally call usb_gadget_wakeup() would be far
too much work. For now we will handle this at the
UDC level, but at some point composite.c should be
one handling this.

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