usb: rockchip-inno-usb2: init cable state when u2phy probe
authorMeng Dongyang <daniel.meng@rock-chips.com>
Tue, 11 Oct 2016 09:08:10 +0000 (17:08 +0800)
committerMeng Dongyang <daniel.meng@rock-chips.com>
Thu, 13 Oct 2016 07:18:20 +0000 (15:18 +0800)
commit454181a86dcc169d34120e2dd3dca89a2112560d
treeab701b6b4a71900c251ca63688a7bf861855b511
parent1a1e029209e91694272cd56833bd75afd086df05
usb: rockchip-inno-usb2: init cable state when u2phy probe

Id pin interrupt not occur when system start, so we need to check
id pin value when u2phy probe and set cable to host if the value
is high.

Change-Id: I333d5cae2463a159a18b455550a76ebcac704c44
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c