]> exis.tech > repos - linux.git/commit
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)
commitba9ea6b3d28225a47e947a67690211c499b94ae3
treef0a818e5421b73d5fbbc0e2989fea21394b7ef3e
parent0cf3489bba9ad13aae052232e223e19a620fe7a7
parentf0334fbfd107682d0c95f3f71e25f6127038e2b9
ASoC: mediatek: mt8183: Fix probe resource cleanup

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