phy: rockchip-pcie: Reconstruct driver to support per-lane PHYs
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 19 Jul 2017 09:55:14 +0000 (17:55 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 28 Aug 2017 18:34:37 +0000 (13:34 -0500)
commit90a7612d070d5caf023b34864028ccce5bffd6ce
tree8c2324f186f2db71b4fd24cae54132eda3bd0079
parent9e87240c460637620d9b4b8c6475a53b48267dc6
phy: rockchip-pcie: Reconstruct driver to support per-lane PHYs

Reconstruct the whole driver to support per-lane PHYs.  Note that we could
also support the legacy PHY if you don't provide argument to
rockchip_pcie_phy_of_xlate().

Tested-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
[bhelgaas: use postincrement/decrement when order doesn't matter, uninline
to_pcie_phy() so decl fits on one line]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/rockchip/phy-rockchip-pcie.c