1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 09:32:12 +00:00
Anurag Dutta f1eb4e792b
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 <a-dutta@ti.com>
Link: https://patch.msgid.link/20251105161146.2019090-2-a-dutta@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-11-13 18:50:35 +00:00
..
2025-11-01 10:45:39 -07:00
2025-10-31 12:57:19 -07:00
2025-10-07 08:40:15 -07:00
2025-10-06 10:37:06 -07:00
2025-10-23 22:30:01 +02:00
2025-10-31 19:11:16 +01:00
2025-10-18 08:18:18 -10:00
2025-10-01 00:00:45 +00:00
2025-10-19 18:56:14 -07:00
2025-10-08 09:44:38 -07:00
2025-10-03 18:18:48 -07:00
2025-10-03 18:48:02 -07:00
2025-10-26 10:33:46 -07:00
2025-10-04 15:50:37 -07:00
2025-10-06 11:17:18 -07:00
2025-10-31 14:24:32 -07:00
2025-10-07 08:59:25 -07:00
2025-10-06 10:34:22 -07:00
2025-10-06 10:41:03 -07:00
2025-10-01 17:32:51 -07:00
2025-10-01 11:34:12 -07:00
2025-10-04 15:45:17 -07:00
2025-10-01 17:32:51 -07:00
2025-10-11 11:56:47 -07:00
2025-10-06 10:32:22 -07:00
2025-10-11 11:49:00 -07:00
2025-10-17 15:26:52 +02:00
2025-10-07 08:40:15 -07:00
2025-10-24 13:52:58 +02:00
2025-10-01 07:24:43 -04:00
2025-09-29 18:48:39 -07:00
2025-10-04 08:48:16 -07:00
2025-10-06 11:00:30 -07:00
2025-10-03 17:41:12 -07:00
2025-10-07 08:40:15 -07:00