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: 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: 30dbc1c8d50f ("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>

authored by

Anurag Dutta and committed by
Mark Brown
10eaa4c4 f1eb4e79

-1
-1
drivers/spi/spi-cadence-quadspi.c
··· 2012 2012 } 2013 2013 2014 2014 if (!(ddata && (ddata->quirks & CQSPI_DISABLE_RUNTIME_PM))) { 2015 - pm_runtime_put_autosuspend(dev); 2016 2015 pm_runtime_mark_last_busy(dev); 2017 2016 pm_runtime_put_autosuspend(dev); 2018 2017 }