usb: dwc_otg_310: set operational mode of phy to normal when suspend for rk3368
authorMeng Dongyang <daniel.meng@rock-chips.com>
Tue, 17 Jan 2017 03:46:57 +0000 (11:46 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 1 Aug 2017 06:47:45 +0000 (14:47 +0800)
commitce201dfb77b6e9640a48988a7aa0bbc0b15b9477
treeb56c8d256f0488ca65212981963de67e1c7ae247
parent39d75ac63aeac05a7d333bff1acfed5eddf3e57a
usb: dwc_otg_310: set operational mode of phy to normal when suspend for rk3368

The phy driver of otg port set operational mode to non-driving
when suspend and set to normal when resume. But if we connect
with low speed, it may be disconnected after suspend and resume
by the changing of operational mode. In addition, the linestate
change interrupt flag can't be cleared if the operational mode
is non-driving. This patch set operational mode to normal even
if the phy is suspended, and make sure that operational mode is
same during suspend and resume.

Change-Id: I670d2cbd4e7c4dc115a735feef848f36f120c295
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
drivers/usb/dwc_otg_310/usbdev_rk3368.c