usb: dwc3: fix PM resume error for rockchip platforms
authorWu Liang feng <wulf@rock-chips.com>
Tue, 16 Aug 2016 06:20:11 +0000 (14:20 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 17 Aug 2016 10:40:29 +0000 (18:40 +0800)
commit389d138fabdf76cd7cb7919f83e6bb30edf72b24
tree42f9081c7d2f99854968e0540bcd8ac0eb92aa95
parent7b082cbcee5be6eb89e91be4df173915043cfbbb
usb: dwc3: fix PM resume error for rockchip platforms

We enable PM runtime auto suspend on rockchip platforms (e.g. rk3399),
it allows DWC3 controller to enter runtime suspend if usb cable detached.
So we don't need to do anything in dwc3_suspend() and dwc3_resume()
which duplicated the same operations as dwc3_runtime_suspend() and
dwc3_runtime_resume().

And if DWC3 controller works on HOST mode, we can't do runtime resume
DWC3 gadget.

Change-Id: I63e734f51b05274251d8a88a664eee768568eb7b
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/gadget.c