FIXUP: UPSTREAM: phy: Add USB Type-C PHY driver for rk3399
authorWu Liang feng <wulf@rock-chips.com>
Wed, 12 Oct 2016 16:22:49 +0000 (00:22 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 13 Oct 2016 06:21:03 +0000 (14:21 +0800)
commitfbd80840b0881a228323c37d376edfec0f639132
tree864b7aa07d90fc4b66887341d37d5544d54ef13c
parent4afab6ba7bac61da38485cb992f4f5fb3dab6d9a
FIXUP: UPSTREAM: phy: Add USB Type-C PHY driver for rk3399

This patch aims to make code sync with upstream[1]. And it
can fix the following issues:

1. Introduce the EXTCON_PROP_USB_SS property to support both
   DP 2*lanes + USB3.0 and DP 4*lanes + USB2.0 mode;
2. Fix the bug that the USB3 phy power on should not return
   err when no USB attached, since the USB3 controller will
   power_on phy at probe/resume, even though there is no USB3
   super speed device attached. At this case, return 0 and do
   nothing is better.
3. Create 2 PHY devices separately for USB3 and DisplyPort,
   and registers them under the child node.

[1] git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
commit <e96be45cb84e29e58f35ed460a859b61e8bf28c5>

Change-Id: Ib388a072f11d80624ec6e16291eab497a3dcb0e1
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/phy/phy-rockchip-typec.c