|
@@ -61,6 +61,8 @@ static void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn,
|
|
|
/* Check that the link is up */
|
|
|
if (!(cdns_pcie_readl(pcie, CDNS_PCIE_LM_BASE) & 0x1))
|
|
|
return NULL;
|
|
|
+ /* Clear AXI link-down status */
|
|
|
+ cdns_pcie_writel(pcie, CDNS_PCIE_AT_LINKDOWN, 0x0);
|
|
|
|
|
|
/* Update Output registers for AXI region 0. */
|
|
|
addr0 = CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS(12) |
|
|
@@ -345,6 +347,7 @@ static struct platform_driver cdns_pcie_host_driver = {
|
|
|
.driver = {
|
|
|
.name = "cdns-pcie-host",
|
|
|
.of_match_table = cdns_pcie_host_of_match,
|
|
|
+ .pm = &cdns_pcie_pm_ops,
|
|
|
},
|
|
|
.probe = cdns_pcie_host_probe,
|
|
|
};
|