Skip to content

Commit 104a6e5

Browse files
Richard Zhugregkh
authored andcommitted
PCI: dwc: Invoke post_init in dw_pcie_resume_noirq()
[ Upstream commit c577ce2 ] In some SoCs like i.MX95, CLKREQ# is pulled low by the controller driver before link up. After link up, if the 'supports-clkreq' property is specified in DT, the driver will release CLKREQ# so that it can go high and the endpoint can pull it low whenever required i.e., during exit from L1 Substates. Hence, at the end of dw_pcie_resume_noirq(), invoke the '.post_init()' callback if exists to perform the above mentioned action. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> [mani: reworded description] Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20251015030428.2980427-9-hongxing.zhu@nxp.com Stable-dep-of: edb5ca3 ("PCI: dwc: Perform cleanup in the error path of dw_pcie_resume_noirq()") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a763a53 commit 104a6e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/pci/controller/dwc/pcie-designware-host.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,9 @@ int dw_pcie_resume_noirq(struct dw_pcie *pci)
12361236
if (ret)
12371237
return ret;
12381238

1239+
if (pci->pp.ops->post_init)
1240+
pci->pp.ops->post_init(&pci->pp);
1241+
12391242
return ret;
12401243
}
12411244
EXPORT_SYMBOL_GPL(dw_pcie_resume_noirq);

0 commit comments

Comments
 (0)