diff options
| author | Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com> | 2026-04-29 22:31:37 +0530 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-04 22:15:10 +0900 |
| commit | d283d5d4d9f6d081ddb65e371be26fffeb611c42 (patch) | |
| tree | ce366d87e52f6b93cac9ae6be6736cc7aca9f6c7 /include/linux/debugobjects.h | |
| parent | 0065dc1fed2a87f815065b1348732ba45469ea83 (diff) | |
spi: spi-qcom-qspi: Fix incomplete error handling in runtime PM
The runtime PM functions had incomplete error handling that could leave the
system in an inconsistent state. If any operation failed midway through
suspend or resume, some resources would be left in the wrong state while
others were already changed, leading to potential clock/power imbalances.
Reorder the suspend/resume sequences to avoid brownout risk by ensuring the
performance state is set appropriately before clocks are enabled and clocks
are disabled before dropping the performance state.
Fix by adding proper error checking for all operations and using goto-based
cleanup to ensure all successfully acquired resources are properly released
on any error.
Signed-off-by: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
Link: https://patch.msgid.link/20260429-spi-nor-v5-2-993016c9711e@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
