Unverified Commit 10eaa4c4 authored by Anurag Dutta's avatar Anurag Dutta Committed by Mark Brown
Browse files

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: 30dbc1c8 ("spi: cadence-qspi: defer runtime support on socfpga if reset bit is enabled")
Signed-off-by: default avatarAnurag Dutta <a-dutta@ti.com>
Link: https://patch.msgid.link/20251105161146.2019090-3-a-dutta@ti.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f1eb4e79
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2012,7 +2012,6 @@ static int cqspi_probe(struct platform_device *pdev)
	}

	if (!(ddata && (ddata->quirks & CQSPI_DISABLE_RUNTIME_PM))) {
		pm_runtime_put_autosuspend(dev);
		pm_runtime_mark_last_busy(dev);
		pm_runtime_put_autosuspend(dev);
	}