Re: [PATCH v2 2/4] ASoC: mediatek: mt8183: Fix APLL enable error handling
From: Bui Duc Phuc
Date: Fri Aug 28 2026 - 00:14:06 EST
Hi Mark, Cezary.
Thank you for your feedback.
>
> > To be honest, after looking at the code for other MediaTek SoCs, I found quite
> > a few logic issues and inconsistent clock handling. This, along with
> > the git log history,
> > makes me wonder whether these code paths were ever properly tested on
> > real hardware.
> > Therefore, I have stopped at mt8186 for now.
>
> There's a lot of code there with shaky error handling; probably the
> default case works but things blow up relatively easily on error.
If you think these code paths are generally functional on real hardware and
the main issue is the shaky error handling,
I’m happy to continue reviewing the remaining SoCs.
I’ll also apply Cezary’s review comments regarding the clock handling in
the mux disable path and returning directly from apllx_mux_setting()
instead of using a goto label, and incorporate these changes into the
next patches.
There are also quite a few uppercase goto labels.
I think this cleanup can be addressed separately later.
Best regards,
Phuc