usb: dwc3: redo the mode setting at core init
authorFrank Wang <frank.wang@rock-chips.com>
Fri, 16 Dec 2016 07:14:13 +0000 (15:14 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 21 Dec 2016 03:07:12 +0000 (11:07 +0800)
commit5cd329fd35f4089eccdf9b2bce7d1e435259b6cd
treedf233ad44cbf8b95383a114668d31b5c0dc791b2
parent77f6848ad5962dfa809f765d2bf26bc458b7fa22
usb: dwc3: redo the mode setting at core init

When dwc3 core enters into suspend mode, the PD may turn off
for power saving, which will cause dwc3 controller lost the
mode operation when resuming time.

This adds redo the mode setting into dwc3_core_init() function
to avoid this issue.

BUG=Redmine: Defect#110481
TEST=rk3399-sapphire-excavator-box(CVTE), check if USB3.0 HUB
can be enumerated after PM resume.

Change-Id: I61c512e9c368afc665cd4d5900367079ed22a34e
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
drivers/usb/dwc3/core.c