<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 5, 2022 at 9:15 PM Nicolin Chen <<a href="mailto:nicoleotsuka@gmail.com">nicoleotsuka@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">On Mon, Sep 5, 2022 at 3:47 AM Shengjiu Wang <<a href="mailto:shengjiu.wang@nxp.com" target="_blank">shengjiu.wang@nxp.com</a>> wrote:<br>
> @@ -1295,6 +1301,17 @@ static int fsl_asrc_runtime_resume(struct device *dev)<br>
> regmap_update_bits(asrc->regmap, REG_ASRCTR,<br>
> ASRCTR_ASRCEi_ALL_MASK, asrctr);<br>
><br>
> + /* Wait for status of initialization for every enabled pairs */<br>
> + do {<br>
> + udelay(5);<br>
> + regmap_read(asrc->regmap, REG_ASRCFG, ®);<br>
> + reg = (reg >> ASRCFG_INIRQi_SHIFT(0)) & 0x7;<br>
> + } while ((reg != ((asrctr >> ASRCTR_ASRCEi_SHIFT(0)) & 0x7)) && --retry);<br>
> +<br>
> + /* FIXME: Doesn't treat initialization timeout as error */<br>
> + if (!retry)<br>
> + dev_warn(dev, "initialization isn't finished\n");<br>
<br>
Any reason why not just dev_err?</blockquote><div> </div><div>Just hesitate to use dev_err. if use dev_err, then should return an error.</div><div>May one of the pairs is finished, it still can continue.</div><div><br></div><div>Best regards</div><div>Wang Shengjiu</div><div><br></div><div><br></div><div> </div></div></div>