]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: mediatek: mt8183: Fix probe resource cleanup
authorMark Brown <broonie@kernel.org>
Tue, 2 Jun 2026 15:10:37 +0000 (16:10 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jun 2026 15:10:37 +0000 (16:10 +0100)
Cássio Gabriel <cassiogabrielcontato@gmail.com> says:

The MT8183 AFE probe has two cleanup gaps that match issues
recently fixed in newer MediaTek AFE drivers.

First, reserved memory assigned with of_reserved_mem_device_init()
is never released on driver removal or later probe failures.

Second, the probe-time runtime PM resume used before reinitializing
the regmap cache is unchecked, and a regmap_reinit_cache() failure
skips the temporary PM put.

Fix both issues with a devm reserved-memory release action and
checked runtime PM resume handling.

Link: https://patch.msgid.link/20260527-asoc-mt8183-probe-cleanup-v1-0-4f4f5593c8d1@gmail.com

Trivial merge