]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: designware: Make num-lanes an optional DT property
authorGabriele Paoloni <gabriele.paoloni@huawei.com>
Mon, 28 Sep 2015 16:03:10 +0000 (00:03 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 15 Oct 2015 19:45:42 +0000 (14:45 -0500)
commitefe52075227729aa2a1ed55e34dd599b3bb0dbf1
tree158e8616fa813e0d0e2aa9a285f9de0f22317143
parentb13457298d16e6a74c8cea54a4b226c6d64bfbff
PCI: designware: Make num-lanes an optional DT property

Currently "num-lanes" is read in dw_pcie_host_init(), but it is only used
if we call dw_pcie_setup_rc() while bringing up the link.  If the link has
already been brought up by firmware, we need not call dw_pcie_setup_rc(),
and "num-lanes" is unnecessary.

Only complain about "num-lanes" if we actually need it and we didn't find a
valid value.

[bhelgaas: changelog]
Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Documentation/devicetree/bindings/pci/designware-pcie.txt
drivers/pci/host/pcie-designware.c