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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:13:16 +0000 (12:13 +0300)
commit00af62330c39a6c88615a08e7f9d068944e4af69
tree820b71ace4348e8459cd6654b5ca9cfb10a2fa24
parentf8ca46aeb7b422b8c22e286e25269e4fefc560bd
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.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c