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

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