phy: rockchip-typec: fall back to working in host-mode if extcon is missing.
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 1 Mar 2018 15:25:10 +0000 (16:25 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 16 Mar 2018 11:25:37 +0000 (16:55 +0530)
commitec1fcd7b7e6f50dd6e259ca76c6e41e2346b3afe
tree226a4f38ab275aabbf2a30f96f9a4f8d38dd2ff1
parent21bf9bc2a99e7b519b0035155209aeea2bc90696
phy: rockchip-typec: fall back to working in host-mode if extcon is missing.

Right now the rockchip type-c phy does fail probing when no extcon is
detected. Some boards get the cable-state via the extcon interface and
have this supported, other boards seem to use the fusb302 chip or
another but the driver currently does not seem to utilize the extcon
interface to report the cable-state. And, other, just connect the type-c
to a standard USB-A port so use no controller at all. A missing extcon
shouldn't fail to probe, instead, should just fall back to working in
host-mode if it cannot get the extcon.

Fixes: c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port support for rk3399")
Reported-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/rockchip/phy-rockchip-typec.c