PCI: rockchip: Specify the link capability
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 7 Dec 2016 21:05:59 +0000 (15:05 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 7 Dec 2016 21:05:59 +0000 (15:05 -0600)
commitf2fb5b8f2a0cb67ba4535eb08d9cfb301ac92429
treeab5612c901646171d9b609884d5f1acccad25e60
parent45e9320f3a4ef9588ee50a2eb1891c4bfdbb07df
PCI: rockchip: Specify the link capability

rk3399 supports PCIe 2.x link speeds marginally at best, and on some
boards, the link won't train at 5 GT/s at all.  Rather than sacrifice 500ms
waiting for training that will never happen, let's use the helper function,
of_pci_get_max_link_speed(), to get the max link speed from DT and specify
link capability.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-rockchip.c