Lspci can not show root port



hello,WayneWWW ,i have config the pcie and add nvidia,disable-power-down under the controller ,but it still not have anything , am i right?

Is this jetpack5 or jeptack6?

jetpack 6.0

disable-power-down property is deprecated on jetpack6.

Need to use such patch to kernel driver directly.

diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c
index a44b477cee27..937d7019fbb1 100644
--- a/drivers/pci/controller/dwc/pcie-tegra194.c
+++ b/drivers/pci/controller/dwc/pcie-tegra194.c
@@ -2193,10 +2193,12 @@ static int tegra_pcie_config_rp(struct tegra_pcie_dw *pcie)

        pcie->link_state = tegra_pcie_dw_link_up(&pcie->pci);
        if (!pcie->link_state) {
-               ret = -ENOMEDIUM;
-               goto fail_host_init;
+               dev_err(dev, "Disabling PCIe power down\n");
+               ret = 0;
        }
 
+       pcie->link_state = true;
+
        name = devm_kasprintf(dev, GFP_KERNEL, "%pOFP", dev->of_node);
        if (!name) {
                ret = -ENOMEM;
1 Like