diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-06-02 17:16:08 +0700 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-11 20:49:42 +0100 |
| commit | ee7b5f7b39332febf917f9ebf212842cc9379815 (patch) | |
| tree | 00dba6b8af495294e3185b7bc961ae32ac34f69a /include/linux/debugobjects.h | |
| parent | 3546e9aa691ac981e4734fedd1646d0180784893 (diff) | |
ASoC: rockchip: rockchip_pdm: Handle runtime PM resume failures in set_fmt
rockchip_pdm_set_fmt() calls pm_runtime_get_sync() before accessing
hardware registers, but ignores its return value.
If the runtime resume fails, the function continues to perform register
accesses while the device state is undefined.
Replace pm_runtime_get_sync() with pm_runtime_resume_and_get() and
return early on failure to avoid unpowered register accesses.
Reported-by: Sashiko AI Review <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/all/20260522110302.349421F000E9@smtp.kernel.org/
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260602101608.45137-6-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
