PCI: rockchip: Add per-lane PHY support
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 25 Aug 2017 20:59:01 +0000 (15:59 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 28 Aug 2017 18:34:37 +0000 (13:34 -0500)
commit9e87240c460637620d9b4b8c6475a53b48267dc6
tree23eb1f466ce971c52d723c591e7ab5733f263d70
parent2ba5991f340b28fe467333740a01a17412ba63dc
PCI: rockchip: Add per-lane PHY support

We distinguish the legacy PHY from newer per-lane PHYs by adding legacy_phy
flag.  Note that the legacy PHY is still the first option to be searched in
order not to break the backward compatibility of DTB.

Tested-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
[bhelgaas: tidy rockchip_pcie_get_phys()]
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/pci/host/pcie-rockchip.c