public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] clk: imx: imx8-acm: fix flags for acm clocks
@ 2025-01-13  9:46 Stefan Eichenberger
  2025-01-14  7:49 ` Shengjiu Wang
  0 siblings, 1 reply; 12+ messages in thread
From: Stefan Eichenberger @ 2025-01-13  9:46 UTC (permalink / raw)
  To: abelvesa, peng.fan, mturquette, sboyd, shawnguo, s.hauer, kernel,
	festevam, shengjiu.wang, francesco.dolcini
  Cc: linux-clk, imx, linux-arm-kernel, linux-kernel,
	Stefan Eichenberger, stable

From: Stefan Eichenberger <stefan.eichenberger@toradex.com>

Currently, the flags for the ACM clocks are set to 0. This configuration
causes the fsl-sai audio driver to fail when attempting to set the
sysclk, returning an EINVAL error. The following error messages
highlight the issue:
fsl-sai 59090000.sai: ASoC: error at snd_soc_dai_set_sysclk on 59090000.sai: -22
imx-hdmi sound-hdmi: failed to set cpu sysclk: -22

By setting the flag CLK_SET_RATE_NO_REPARENT, we signal that the ACM
driver does not support reparenting and instead relies on the clock tree
as defined in the device tree. This change resolves the issue with the
fsl-sai audio driver.

CC: stable@vger.kernel.org
Fixes: d3a0946d7ac9 ("clk: imx: imx8: add audio clock mux driver")
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
---
 drivers/clk/imx/clk-imx8-acm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/imx/clk-imx8-acm.c b/drivers/clk/imx/clk-imx8-acm.c
index c169fe53a35f..f20832a17ea3 100644
--- a/drivers/clk/imx/clk-imx8-acm.c
+++ b/drivers/clk/imx/clk-imx8-acm.c
@@ -371,7 +371,8 @@ static int imx8_acm_clk_probe(struct platform_device *pdev)
 	for (i = 0; i < priv->soc_data->num_sels; i++) {
 		hws[sels[i].clkid] = devm_clk_hw_register_mux_parent_data_table(dev,
 										sels[i].name, sels[i].parents,
-										sels[i].num_parents, 0,
+										sels[i].num_parents,
+										CLK_SET_RATE_NO_REPARENT,
 										base + sels[i].reg,
 										sels[i].shift, sels[i].width,
 										0, NULL, NULL);
-- 
2.45.2


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

end of thread, other threads:[~2025-01-17 16:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-13  9:46 [PATCH v1] clk: imx: imx8-acm: fix flags for acm clocks Stefan Eichenberger
2025-01-14  7:49 ` Shengjiu Wang
2025-01-14 11:58   ` Stefan Eichenberger
2025-01-15  8:33     ` Stefan Eichenberger
2025-01-15  9:14       ` Shengjiu Wang
2025-01-15 10:39         ` Stefan Eichenberger
2025-01-16  4:01           ` Shengjiu Wang
2025-01-16  7:24             ` Stefan Eichenberger
2025-01-16  7:30               ` Shengjiu Wang
2025-01-16 17:35                 ` Stefan Eichenberger
2025-01-17  6:56                   ` Shengjiu Wang
2025-01-17 16:16                     ` Stefan Eichenberger

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