UPSTREAM: usb: dwc3: core: Move the mode setting to the right place
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 15 Jul 2016 09:13:27 +0000 (17:13 +0800)
committerWu Liang feng <wulf@rock-chips.com>
Wed, 26 Oct 2016 02:22:01 +0000 (10:22 +0800)
commit104756064072e39790eb16c5c987744e81d52a62
treef0c3ade9cf9cb3f40380d34f0d4295c366581498
parent3614d69125af1d0d1ebd29a755b7888a950a6367
UPSTREAM: usb: dwc3: core: Move the mode setting to the right place

When dwc3 core enters into suspend mode, the system (especially for mobile
device) may power off the dwc3 controller for power saving, that will cause
dwc3 controller lost the mode operation when resuming dwc3 core.

Thus we can move the mode setting into dwc3_core_init() function to avoid this
issue.

Change-Id: I2999291d8f6632e02ceba35d957f7129e18919e6
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 00af62330c39a6c88615a08e7f9d068944e4af69)
drivers/usb/dwc3/core.c