[PATCH 1/3] ASoC: mt6797: fix wrong unwind order and error code in enable_clock
Cezary Rojewski
cezary.rojewski at intel.com
Tue Aug 18 03:32:15 PDT 2026
On 8/17/2026 1:32 PM, phucduc.bui at gmail.com wrote:
> From: bui duc phuc <phucduc.bui at gmail.com>
>
> The error paths in mt6797_afe_enable_clock() use incorrect goto labels,
> causing clocks that failed to enable to be disabled during cleanup.
>
> Fix the goto labels to only unwind clocks that were successfully
> enabled, and return the actual error code.
>
> Signed-off-by: bui duc phuc <phucduc.bui at gmail.com>
Aside from my comment regarding mt2701, this mt6797 series should have
its title updated:
ASoC: mediatek: mt6797:
More information about the Linux-mediatek
mailing list