diff options
| author | Cássio Gabriel <cassiogabrielcontato@gmail.com> | 2026-05-27 10:55:47 -0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-02 16:13:06 +0100 |
| commit | e24d5dde56a50946020b134fa8448869093db76a (patch) | |
| tree | a76ad63323d3bc00b974288d11275f36a86f8ec4 /include/linux/timerqueue.h | |
| parent | 965e17ae6751c5d3302430c8ebd650e72d45a85f (diff) | |
ASoC: mediatek: mt8192: Check runtime resume during probe
The MT8192 AFE probe enables runtime PM temporarily while reinitializing
the regmap cache from hardware, but it uses pm_runtime_get_sync()
without checking the return value. If runtime resume fails, probe keeps
going without the device necessarily being accessible, and
pm_runtime_get_sync() may leave the PM usage count incremented.
The regmap_reinit_cache() failure path also returns before dropping the
temporary PM reference and before clearing pm_runtime_bypass_reg_ctl.
Use pm_runtime_resume_and_get() so resume failures do not leak a usage
count, and clear the temporary bypass flag after dropping the probe PM
reference on all regmap_reinit_cache() outcomes.
Fixes: 125ab5d588b0 ("ASoC: mediatek: mt8192: add platform driver")
Cc: stable@vger.kernel.org
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260527-asoc-mt8192-probe-cleanup-v1-2-1bb834d05b72@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
