Skip to content

Commit f2c2fc9

Browse files
eichenbergerAbel Vesa
authored andcommitted
clk: imx: imx8-acm: fix flags for acm clocks
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: d3a0946 ("clk: imx: imx8: add audio clock mux driver") Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://patch.msgid.link/20260212085750.3253187-1-shengjiu.wang@nxp.com Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
1 parent 9faf207 commit f2c2fc9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/clk/imx/clk-imx8-acm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ static int imx8_acm_clk_probe(struct platform_device *pdev)
371371
for (i = 0; i < priv->soc_data->num_sels; i++) {
372372
hws[sels[i].clkid] = devm_clk_hw_register_mux_parent_data_table(dev,
373373
sels[i].name, sels[i].parents,
374-
sels[i].num_parents, 0,
374+
sels[i].num_parents,
375+
CLK_SET_RATE_NO_REPARENT,
375376
base + sels[i].reg,
376377
sels[i].shift, sels[i].width,
377378
0, NULL, NULL);

0 commit comments

Comments
 (0)