usb: dwc3: rockchip: set dwc3 enter runtime suspend immediately
authorMeng Dongyang <daniel.meng@rock-chips.com>
Tue, 11 Oct 2016 09:40:19 +0000 (17:40 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 13 Oct 2016 08:09:40 +0000 (16:09 +0800)
commita43c9c3095ee7fbdd90d50a5e5e9901d4906e8dd
tree7e79af99718925dc918d86e9023f80dd0cec1ac7
parent4221c07f2c1db32ffa44eed68bd7788ade2e4a9b
usb: dwc3: rockchip: set dwc3 enter runtime suspend immediately

In current code, the dwc3 controller is active when system start
and change to suspend when auto suspend, while the dwc3 controller
will receive connected notify before auto suspend and fail to change
the state of dwc3 controller from active state to resume if dwc3
controller is connected when system start. So we can change async
suspend to sysc suspend to make sure that the dwc3 controller could
finish suspend process before receive connect notify and fix "set
address fail" error when system start.

Change-Id: Ida8760004da06275d667e33b887b8dde87cd9520
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/usb/dwc3/dwc3-rockchip.c