Skip to content

Commit

Permalink
Merge branch 'pci/controller/tegra194'
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
bjorn-helgaas committed May 16, 2024
2 parents f4036f6 + 1932600 commit 24ffb8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pci/controller/dwc/pcie-tegra194.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 24ffb8c

Please sign in to comment.