CHROMIUM: phy: rockchip: typec: sync with v4.17-rc5

v4.17-rc5 is functionally equivalent to our driver (see the diff;
there's not much) except for these two CHROMIUM patches:

b288d1dd5006 CHROMIUM: phy: rockchip-typec: tuning phy for usb3 Tx
bcc6f560b5b2 CHROMIUM: phy: rockchip-typec: tuning phy for usb3 Rx flip

So, sync with upstream, to ease development.

This delta was generated by:

  # Pull from upstream
  git show v4.17-rc5:drivers/phy/rockchip/phy-rockchip-typec.c > drivers/phy/phy-rockchip-typec.c
  # Pick the above 2 CHROMIUM
  git cherry-pick b288d1dd50063e82585936fbf9de74e490ac3b82 bcc6f560b5b25f6a57c113a35fd90b01b51ac749

and then squashed together.

I generated a similar diff locally via reverts + cherry-picks (the
following, read top-to-bottom), but a squash seemed more readable:

6101c7fb878e UPSTREAM: phy: rockchip-typec: remove unused dfp variable
7fe684dd3a43 Revert "FROMLIST: phy: rockchip-typec: support DP phy switch"
b3280a7db549 Revert "FROMGIT: phy: rockchip-typec: Check for errors from tcphy_phy_init()"
5177a34463d7 Revert "CHROMIUM: phy: rockchip-typec: enable usb3 host after pipe ready"
e3728b828352 Revert "CHROMIUM: phy: rockchip-typec: force to USB2 if DP at 4 lanes mode"
53707ccf0e6e Revert "FIXUP: CHROMIUM: enable usb3 host during usb3 phy power on"
34a1ab86dc95 UPSTREAM: phy: rockchip-typec: deprecate some DT properties for various register fields.
e7aecc449680 UPSTREAM: phy: rockchip-typec: enable usb3 host during usb3 phy power on
3375a66c7cb4 UPSTREAM: phy: rockchip-typec: force to USB2 if DP at 4 lanes mode
b5abdb3634a0 UPSTREAM: phy: rockchip-typec: support DP phy switch
c0ab99d3cb06 UPSTREAM: phy: rockchip-typec: fall back to working in host-mode if extcon is missing.
0ab21b71990d UPSTREAM: phy: rockchip-typec: Check for errors from tcphy_phy_init()

BUG=b:72006974
TEST=USB and DP on Kevin, Scarlet

Change-Id: If716fbae06a1df99e1c63252cf97a9d57792dd1a
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1062912
Reviewed-by: Douglas Anderson <dianders@chromium.org>
1 file changed