aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorAnurag Dutta <[email protected]>2025-11-05 16:11:45 +0000
committerMark Brown <[email protected]>2025-11-13 18:50:35 +0000
commitf1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3 (patch)
tree8f03333aad6fbc1a8d00b79e0b4c2eba480ff87a /scripts/basic/docproc.c
parentspi: Add TODO comment about ACPI GPIO setup (diff)
downloadkernel-f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3.tar.gz
kernel-f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3.zip
spi: spi-cadence-quadspi: Enable pm runtime earlier to avoid imbalance
The "probe_setup_failed" label calls pm_runtime_disable(), but pm_runtime_enable() was placed after a possible jump to this label. When cqspi_setup_flash() fails, control jumps to the label without pm_runtime_enable() being called, leading to unbalanced PM runtime reference counting. Move pm_runtime_enable() and associated calls above the first possible branch to "probe_setup_failed" to ensure balanced enable/disable calls across all error paths. Fixes: 30dbc1c8d50f ("spi: cadence-qspi: defer runtime support on socfpga if reset bit is enabled") Signed-off-by: Anurag Dutta <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions