<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 13, 2022 at 4:34 PM Pieterjan Camerlynck <<a href="mailto:pieterjan.camerlynck@gmail.com">pieterjan.camerlynck@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In commit c3ecef21c3f26 ("ASoC: fsl_sai: add sai master mode support")<br>
the loop was changed to start iterating from 1 instead of 0. The error<br>
message however was not updated, reporting the wrong clock to the user.<br>
<br>
Signed-off-by: Pieterjan Camerlynck <<a href="mailto:pieterjan.camerlynck@gmail.com" target="_blank">pieterjan.camerlynck@gmail.com</a>><br></blockquote><div><br></div><div>Acked-by: Shengjiu Wang <<a href="mailto:shengjiu.wang@gmail.com">shengjiu.wang@gmail.com</a>></div><div><br></div><div>Best regards</div><div>Wang shengjiu</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
V2: rebase against latest version<br>
---<br>
 sound/soc/fsl/fsl_sai.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c<br>
index 7523bb944b21..d430eece1d6b 100644<br>
--- a/sound/soc/fsl/fsl_sai.c<br>
+++ b/sound/soc/fsl/fsl_sai.c<br>
@@ -1306,7 +1306,7 @@ static int fsl_sai_probe(struct platform_device *pdev)<br>
                sai->mclk_clk[i] = devm_clk_get(dev, tmp);<br>
                if (IS_ERR(sai->mclk_clk[i])) {<br>
                        dev_err(dev, "failed to get mclk%d clock: %ld\n",<br>
-                                       i + 1, PTR_ERR(sai->mclk_clk[i]));<br>
+                                       i, PTR_ERR(sai->mclk_clk[i]));<br>
                        sai->mclk_clk[i] = NULL;<br>
                }<br>
        }<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div></div>