phy: rockchip-inno-usb2: add SDP detect retry
authorFeng Mingli <fml@rock-chips.com>
Wed, 10 Aug 2016 03:43:04 +0000 (11:43 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 17 Aug 2016 02:02:46 +0000 (10:02 +0800)
commitbf0a6fd8994515ad12ffb42772ece1143bc1e1f9
tree5ae2809208b5b41a650921de870074cdb6d8c071
parent08315283753567734e9687aa7c8ce72329e519be
phy: rockchip-inno-usb2: add SDP detect retry

If detect a SDP charger type, we retry twice more to avoid
DCP falsely identified as SDP due to hardware signal error.

Change-Id: I1bf7bd076cd7767938f6944f1156daa7e64870e4
Signed-off-by: Feng Mingli <fml@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c