linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: mediatek: fix dependency of MT7986 ADC clocks
@ 2022-10-20 19:52 Daniel Golle
  2022-10-21  8:06 ` AngeloGioacchino Del Regno
  2022-10-21  8:08 ` AngeloGioacchino Del Regno
  0 siblings, 2 replies; 8+ messages in thread
From: Daniel Golle @ 2022-10-20 19:52 UTC (permalink / raw)
  To: linux-clk, linux-arm-kernel, linux-mediatek, linux-kernel,
	Michael Turquette, Stephen Boyd, Matthias Brugger
  Cc: Sam Shih, Miles Chen, AngeloGioacchino Del Regno, Chen-Yu Tsai

It seems like CLK_INFRA_ADC_FRC_CK always need to be enabled for
CLK_INFRA_ADC_26M_CK to work. Instead of adding this dependency to the
mtk-thermal and mt6577_auxadc drivers, add dependency to the clock
driver clk-mt7986-infracfg.c.

Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 drivers/clk/mediatek/clk-mt7986-infracfg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/mediatek/clk-mt7986-infracfg.c b/drivers/clk/mediatek/clk-mt7986-infracfg.c
index d90727a53283c7..49666047bf0ed5 100644
--- a/drivers/clk/mediatek/clk-mt7986-infracfg.c
+++ b/drivers/clk/mediatek/clk-mt7986-infracfg.c
@@ -153,7 +153,7 @@ static const struct mtk_gate infra_clks[] = {
 		    18),
 	GATE_INFRA1(CLK_INFRA_MSDC_66M_CK, "infra_msdc_66m", "infra_sysaxi_d2",
 		    19),
-	GATE_INFRA1(CLK_INFRA_ADC_26M_CK, "infra_adc_26m", "csw_f26m_sel", 20),
+	GATE_INFRA1(CLK_INFRA_ADC_26M_CK, "infra_adc_26m", "infra_adc_frc", 20),
 	GATE_INFRA1(CLK_INFRA_ADC_FRC_CK, "infra_adc_frc", "csw_f26m_sel", 21),
 	GATE_INFRA1(CLK_INFRA_FBIST2FPC_CK, "infra_fbist2fpc", "nfi1x_sel", 23),
 	/* INFRA2 */
-- 
2.38.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-11-29  7:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-20 19:52 [PATCH] clk: mediatek: fix dependency of MT7986 ADC clocks Daniel Golle
2022-10-21  8:06 ` AngeloGioacchino Del Regno
2022-10-21  8:08 ` AngeloGioacchino Del Regno
2022-10-26 16:18   ` [PATCH v2] " Daniel Golle
2022-10-27 21:41     ` Stephen Boyd
2022-10-27 23:24       ` Daniel Golle
2022-10-27 23:30         ` Stephen Boyd
2022-11-29  7:04     ` Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).