diff options
| author | Cássio Gabriel <cassiogabrielcontato@gmail.com> | 2026-05-27 10:41:49 -0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-02 16:10:35 +0100 |
| commit | f0334fbfd107682d0c95f3f71e25f6127038e2b9 (patch) | |
| tree | d9c666a6a44501970d288ecd1e6c586f04eddee6 /include/linux/timerqueue.h | |
| parent | bee65e00c0924ebecf97718d95dcf4a05ee36471 (diff) | |
ASoC: mediatek: mt8183: Check runtime resume during probe
The MT8183 AFE probe uses pm_runtime_get_sync() before reading hardware
defaults into the regmap cache, but does not check whether runtime resume
failed. If regmap_reinit_cache() then fails, the temporary runtime PM
usage count is also not released.
Use pm_runtime_resume_and_get() so resume failures abort probe without
leaking a usage count, and release the temporary reference before
handling the regmap cache result.
Fixes: a94aec035a12 ("ASoC: mediatek: mt8183: add platform driver")
Cc: stable@vger.kernel.org
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260527-asoc-mt8183-probe-cleanup-v1-2-4f4f5593c8d1@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
