diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2024-05-17 02:14:13 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-05-17 02:14:13 +0300 |
commit | 24ffb8c9188e709db57004717358d0294788e023 (patch) | |
tree | f91b08088cf416d724241204a503c9b1c145b4b0 | |
parent | f4036f64b581637121d2319923a788db3b0432ec (diff) | |
parent | 19326006a21da26532d982254677c892dae8f29b (diff) | |
download | linux-24ffb8c9188e709db57004717358d0294788e023.tar.xz |
Merge branch 'pci/controller/tegra194'
- Return success from endpoint probe before incorrectly dropping the
reference to the BPMP (Vidya Sagar)
* pci/controller/tegra194:
PCI: tegra194: Fix probe path for Endpoint mode
-rw-r--r-- | drivers/pci/controller/dwc/pcie-tegra194.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c index ddc23602eca7..93f5433c5c55 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -2274,11 +2274,14 @@ static int tegra_pcie_dw_probe(struct platform_device *pdev) ret = tegra_pcie_config_ep(pcie, pdev); if (ret < 0) goto fail; + else + return 0; break; default: dev_err(dev, "Invalid PCIe device type %d\n", pcie->of_data->mode); + ret = -EINVAL; } fail: |