UPSTREAM: usb: dwc3: gadget: clear SUSPHY bit before ep cmds
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 4 Apr 2016 06:19:17 +0000 (09:19 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitcbc972a0a561c3618c64fbea696f248439efbe04
tree96922fb71598b384c64c8785159487f5e69afc33
parent1f179866afe8a74a3023e8673054685265fb1eba
UPSTREAM: usb: dwc3: gadget: clear SUSPHY bit before ep cmds

Synopsys Databook 2.60a has a note that if we're
sending an endpoint command we _must_ make sure that
DWC3_GUSB2PHY(n).SUSPHY bit is cleared.

This patch implements that particular detail.

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