diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2019-09-23 17:10:18 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-09-23 17:10:18 -0400 |
commit | b83e445d462a858d51f04fdb3db0cd307bfabd1f (patch) | |
tree | 0b685f23958e371ef0b4eccfd72ef11be822d34e /drivers/pci/controller/dwc | |
parent | af47f25f33f7f628cb50a82bc60b8ad1677626a2 (diff) | |
parent | 4035ff36a6e0a07a1f0b0609520e17bd69a74c8b (diff) |
Merge branch 'remotes/lorenzo/pci/dwc'
- Make kirin_dw_pcie_ops constant (Nishka Dasgupta)
- Make DesignWare "num-lanes" property optional and remove from relevant
DTs (Hou Zhiqiang)
* remotes/lorenzo/pci/dwc:
arm64: dts: fsl: Remove num-lanes property from PCIe nodes
ARM: dts: ls1021a: Remove num-lanes property from PCIe nodes
PCI: dwc: Return directly when num-lanes is not found
dt-bindings: PCI: designware: Remove the num-lanes from Required properties
PCI: kirin: Make structure kirin_dw_pcie_ops constant
Diffstat (limited to 'drivers/pci/controller/dwc')
-rw-r--r-- | drivers/pci/controller/dwc/pcie-designware.c | 6 | ||||
-rw-r--r-- | drivers/pci/controller/dwc/pcie-kirin.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c index 7d25102c304c..0a89bfd1636e 100644 --- a/drivers/pci/controller/dwc/pcie-designware.c +++ b/drivers/pci/controller/dwc/pcie-designware.c | |||
@@ -423,8 +423,10 @@ void dw_pcie_setup(struct dw_pcie *pci) | |||
423 | 423 | ||
424 | 424 | ||
425 | ret = of_property_read_u32(np, "num-lanes", &lanes); | 425 | ret = of_property_read_u32(np, "num-lanes", &lanes); |
426 | if (ret) | 426 | if (ret) { |
427 | lanes = 0; | 427 | dev_dbg(pci->dev, "property num-lanes isn't found\n"); |
428 | return; | ||
429 | } | ||
428 | 430 | ||
429 | /* Set the number of lanes */ | 431 | /* Set the number of lanes */ |
430 | val = dw_pcie_readl_dbi(pci, PCIE_PORT_LINK_CONTROL); | 432 | val = dw_pcie_readl_dbi(pci, PCIE_PORT_LINK_CONTROL); |
diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c index 8df1914226be..c19617a912bd 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c | |||
@@ -436,7 +436,7 @@ static int kirin_pcie_host_init(struct pcie_port *pp) | |||
436 | return 0; | 436 | return 0; |
437 | } | 437 | } |
438 | 438 | ||
439 | static struct dw_pcie_ops kirin_dw_pcie_ops = { | 439 | static const struct dw_pcie_ops kirin_dw_pcie_ops = { |
440 | .read_dbi = kirin_pcie_read_dbi, | 440 | .read_dbi = kirin_pcie_read_dbi, |
441 | .write_dbi = kirin_pcie_write_dbi, | 441 | .write_dbi = kirin_pcie_write_dbi, |
442 | .link_up = kirin_pcie_link_up, | 442 | .link_up = kirin_pcie_link_up, |