usb: dwc3: rockchip: enable dwc3 to be a wakeup source
authorMeng Dongyang <daniel.meng@rock-chips.com>
Wed, 12 Oct 2016 07:55:39 +0000 (15:55 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 13 Oct 2016 06:56:51 +0000 (14:56 +0800)
commit1a1e029209e91694272cd56833bd75afd086df05
treed422ade2ec9a544847e95dd4635d1195e40fd403
parentd87393333837f83595ecb8b12e0bf3e6df927bd2
usb: dwc3: rockchip: enable dwc3 to be a wakeup source

Enable dwc3 to be wakeup source in runtime resume callback function
and disable dwc3 to be wake up source in runtime suspend. Change pd
in order to control usb pd base on the connect state of usb controller
and fix the detect fail bug of otg port after suspend and resume.

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