linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Shengjiu Wang <shengjiu.wang@gmail.com>
To: Nicolin Chen <nicoleotsuka@gmail.com>
Cc: alsa-devel@alsa-project.org, Xiubo Li <Xiubo.Lee@gmail.com>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	Shengjiu Wang <shengjiu.wang@nxp.com>,
	Takashi Iwai <tiwai@suse.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Jaroslav Kysela <perex@perex.cz>, Mark Brown <broonie@kernel.org>,
	Fabio Estevam <festevam@gmail.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ASoC: fsl_asrc: Add initialization finishing check in runtime resume
Date: Tue, 6 Sep 2022 21:55:19 +0800	[thread overview]
Message-ID: <CAA+D8ANu11Y5m1jJLEm8==45x5-z7C468JS-u6oMmmsYs1okbg@mail.gmail.com> (raw)
In-Reply-To: <CAGoOwPSOEmLN+0esj2QfoadN7JZ=TJeZymxcp3MPqP4oLok70w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

On Tue, Sep 6, 2022 at 7:42 PM Nicolin Chen <nicoleotsuka@gmail.com> wrote:

> On Tue, Sep 6, 2022 at 3:50 AM Shengjiu Wang <shengjiu.wang@gmail.com>
> wrote:
> >> >> > +       /* Wait for status of initialization for every enabled
> pairs */
> >> >> > +       do {
> >> >> > +               udelay(5);
> >> >> > +               regmap_read(asrc->regmap, REG_ASRCFG, &reg);
> >> >> > +               reg = (reg >> ASRCFG_INIRQi_SHIFT(0)) & 0x7;
> >> >> > +       } while ((reg != ((asrctr >> ASRCTR_ASRCEi_SHIFT(0)) &
> 0x7)) && --retry);
> >> >> > +
> >> >> > +       /* FIXME: Doesn't treat initialization timeout as error */
> >> >> > +       if (!retry)
> >> >> > +               dev_warn(dev, "initialization isn't finished\n");
> >> >>
> >> >> Any reason why not just dev_err?
> >> >
> >> > Just hesitate to use dev_err. if use dev_err, then should return an
> error.
> >> > May one of the pairs is finished, it still can continue.
> >>
> >> Makes sense. In that case, why "FIXME" :)
>
> > Just want to have a record/note here, need to care about this warning.
>
> "FIXME" feels like something is wrong and literally means that it is
> waiting for a fix/solution. In your case, it's not waiting for a fix
> at all, but just an annotation? So, shouldn't it be just "Note:"?
>

ok, let me update it.

best regards
wang shengjiu

[-- Attachment #2: Type: text/html, Size: 2189 bytes --]

      reply	other threads:[~2022-09-06 21:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 10:29 [PATCH] ASoC: fsl_asrc: Add initialization finishing check in runtime resume Shengjiu Wang
2022-09-05 13:15 ` Nicolin Chen
2022-09-06  1:54   ` Shengjiu Wang
2022-09-06  9:50     ` Nicolin Chen
2022-09-06 10:50       ` Shengjiu Wang
2022-09-06 11:41         ` Nicolin Chen
2022-09-06 13:55           ` Shengjiu Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA+D8ANu11Y5m1jJLEm8==45x5-z7C468JS-u6oMmmsYs1okbg@mail.gmail.com' \
    --to=shengjiu.wang@gmail.com \
    --cc=Xiubo.Lee@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=festevam@gmail.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=nicoleotsuka@gmail.com \
    --cc=perex@perex.cz \
    --cc=shengjiu.wang@nxp.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).