Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] ASoC: mediatek: mt8186: Fix clock error handling
@ 2026-08-21 12:30 phucduc.bui
  2026-08-21 12:30 ` [PATCH v2 1/4] ASoC: mediatek: mt8186: fix APLL mux setting " phucduc.bui
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: phucduc.bui @ 2026-08-21 12:30 UTC (permalink / raw)
  To: Mark Brown, Matthias Brugger
  Cc: Liam Girdwood, AngeloGioacchino Del Regno, Jaroslav Kysela,
	Takashi Iwai, Cezary Rojewski, linux-sound, linux-arm-kernel,
	linux-mediatek, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Hi all,

This series fixes clock error handling in the MT8186 AFE driver.

The current code may fail to clean up clocks that were already enabled and 
may not propagate some clock lookup errors.

I also referred to the MT8183 implementation, where the clocks are handled 
using devm_clk_get(). However, the MT8186 code currently behaves more like 
devm_clk_get_optional().

I could not find any indication that these clocks are optional, 
so I dropped patch 5 from v1. If this is confirmed, I can send the change 
as a separate patch in a later revision.

The changes were found by manual code inspection and compile-tested only.

Link v1 : 
https://lore.kernel.org/all/20260820111253.97866-1-phucduc.bui@gmail.com/

Changes in v2:
 - Update the cover letter.
 - Drop patch 5 from v1.
 - Add Fixes tags.

Best regards,
Phuc
bui duc phuc (4):
  ASoC: mediatek: mt8186: fix APLL mux setting error handling
  ASoC: mediatek: mt8186: Fix AFE clock error handling
  ASoC: mediatek: mt8186: Fix APLL enable error handling
  ASoC: mediatek: mt8186: Fix MCK error handling

 sound/soc/mediatek/mt8186/mt8186-afe-clk.c | 103 ++++++++++++++-------
 1 file changed, 71 insertions(+), 32 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-21 12:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21 12:30 [PATCH v2 0/4] ASoC: mediatek: mt8186: Fix clock error handling phucduc.bui
2026-08-21 12:30 ` [PATCH v2 1/4] ASoC: mediatek: mt8186: fix APLL mux setting " phucduc.bui
2026-08-21 12:30 ` [PATCH v2 2/4] ASoC: mediatek: mt8186: Fix AFE clock " phucduc.bui
2026-08-21 12:30 ` [PATCH v2 3/4] ASoC: mediatek: mt8186: Fix APLL enable " phucduc.bui
2026-08-21 12:30 ` [PATCH v2 4/4] ASoC: mediatek: mt8186: Fix MCK " phucduc.bui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox