]> 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>
Mon, 2 Nov 2015 20:48:45 +0000 (14:48 -0600)
commit907fce0902539ecde609e485eb2ecd7119a7a623
tree158e8616fa813e0d0e2aa9a285f9de0f22317143
parentb6b18f589e1ddbfbc31f72ea7fb8a723a2d10058
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