Skip to content

Commit de2bbf2

Browse files
Om Prakash SinghLorenzo Pieralisi
authored andcommitted
PCI: tegra194: Don't allow suspend when Tegra PCIe is in EP mode
When Tegra PCIe is in endpoint mode it should be available for root port. PCIe link up by root port fails if it is in suspend state. So, don't allow Tegra to suspend when endpoint mode is enabled. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Om Prakash Singh <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Bjorn Helgaas <[email protected]> Acked-by: Vidya Sagar <[email protected]>
1 parent 834c5cf commit de2bbf2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/pci/controller/dwc/pcie-tegra194.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,6 +2246,11 @@ static int tegra_pcie_dw_resume_early(struct device *dev)
22462246
struct tegra_pcie_dw *pcie = dev_get_drvdata(dev);
22472247
u32 val;
22482248

2249+
if (pcie->mode == DW_PCIE_EP_TYPE) {
2250+
dev_err(dev, "Suspend is not supported in EP mode");
2251+
return -ENOTSUPP;
2252+
}
2253+
22492254
if (!pcie->link_state)
22502255
return 0;
22512256

0 commit comments

Comments
 (0)