Skip to content

Commit 10eaa4c

Browse files
Anurag Duttabroonie
authored andcommitted
spi: spi-cadence-quadspi: Remove duplicate pm_runtime_put_autosuspend() call
Fix runtime PM usage count underflow caused by calling pm_runtime_put_autosuspend() twice with only one corresponding pm_runtime_get_noresume() call. This triggers the warning: "Runtime PM usage count underflow!" Remove the duplicate put call to balance the runtime PM reference counting. Fixes: 30dbc1c ("spi: cadence-qspi: defer runtime support on socfpga if reset bit is enabled") Signed-off-by: Anurag Dutta <a-dutta@ti.com> Link: https://patch.msgid.link/20251105161146.2019090-3-a-dutta@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f1eb4e7 commit 10eaa4c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/spi/spi-cadence-quadspi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,6 @@ static int cqspi_probe(struct platform_device *pdev)
20122012
}
20132013

20142014
if (!(ddata && (ddata->quirks & CQSPI_DISABLE_RUNTIME_PM))) {
2015-
pm_runtime_put_autosuspend(dev);
20162015
pm_runtime_mark_last_busy(dev);
20172016
pm_runtime_put_autosuspend(dev);
20182017
}

0 commit comments

Comments
 (0)