* [PATCH] PCI: fu740: Disable pcie_aux clock if reset deassert fails
@ 2026-11-16 20:09 Jayaraj Devaraj
0 siblings, 0 replies; only message in thread
From: Jayaraj Devaraj @ 2026-11-16 20:09 UTC (permalink / raw)
To: Manivannan Sadhasivam, Krzysztof Wilczyński,
Lorenzo Pieralisi, Bjorn Helgaas
Cc: Paul Walmsley, Greentime Hu, Samuel Holland, Rob Herring,
Philipp Zabel, linux-pci, linux-riscv, linux-kernel,
Jayaraj Devaraj
fu740_pcie_host_init() enables the pcie_aux clock and then returns
without disabling it if reset_control_deassert() fails, leaving the
clock enabled on the error path.
Disable the clock before returning the error.
Signed-off-by: Jayaraj Devaraj <jayarajdmit@gmail.com>
---
drivers/pci/controller/dwc/pcie-fu740.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pci/controller/dwc/pcie-fu740.c b/drivers/pci/controller/dwc/pcie-fu740.c
index 00ec69a09164..2355243da793 100644
--- a/drivers/pci/controller/dwc/pcie-fu740.c
+++ b/drivers/pci/controller/dwc/pcie-fu740.c
@@ -260,6 +260,7 @@ static int fu740_pcie_host_init(struct dw_pcie_rp *pp)
ret = reset_control_deassert(afp->rst);
if (ret) {
dev_err(dev, "unable to deassert pcie_power_up_rst_n\n");
+ clk_disable_unprepare(afp->pcie_aux);
return ret;
}
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-16 20:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 20:09 [PATCH] PCI: fu740: Disable pcie_aux clock if reset deassert fails Jayaraj Devaraj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®