Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: cadence-quadspi: fix clock imbalance on probe failure

Drop the bogus runtime PM get on probe failures that was never needed
and that leaks a usage count reference while preventing the clocks from
being disabled (as runtime PM has not yet been enabled).

Fixes: 1889dd208197 ("spi: cadence-quadspi: Fix clock disable on probe failure path")
Cc: stable@vger.kernel.org # 6.19
Cc: Anurag Dutta <a-dutta@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260421125354.1534871-3-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Johan Hovold and committed by
Mark Brown
cba53fe2 5ff4d5d1

+1 -2
+1 -2
drivers/spi/spi-cadence-quadspi.c
··· 2000 2000 pm_runtime_disable(dev); 2001 2001 cqspi_controller_enable(cqspi, 0); 2002 2002 disable_clks: 2003 - if (pm_runtime_get_sync(&pdev->dev) >= 0) 2004 - clk_bulk_disable_unprepare(CLK_QSPI_NUM, cqspi->clks); 2003 + clk_bulk_disable_unprepare(CLK_QSPI_NUM, cqspi->clks); 2005 2004 2006 2005 return ret; 2007 2006 }