Re: [PATCH 1/3] ASoC: mt6797: fix wrong unwind order and error code in enable_clock

From: Cezary Rojewski

Date: Tue Aug 18 2026 - 06:42:59 EST


On 8/17/2026 1:32 PM, phucduc.bui@xxxxxxxxx wrote:
From: bui duc phuc <phucduc.bui@xxxxxxxxx>

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@xxxxxxxxx>


Aside from my comment regarding mt2701, this mt6797 series should have its title updated:

ASoC: mediatek: mt6797: