From: Mark Brown Date: Tue, 2 Jun 2026 15:10:37 +0000 (+0100) Subject: ASoC: mediatek: mt8183: Fix probe resource cleanup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba9ea6b3d28225a47e947a67690211c499b94ae3;p=thirdparty%2Flinux.git ASoC: mediatek: mt8183: Fix probe resource cleanup Cássio Gabriel 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 --- ba9ea6b3d28225a47e947a67690211c499b94ae3