All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhangqilong <zhangqilong3@huawei.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>,
	"perex@perex.cz" <perex@perex.cz>,
	 "tiwai@suse.com" <tiwai@suse.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"broonie@kernel.org" <broonie@kernel.org>,
	"lgirdwood@gmail.com" <lgirdwood@gmail.com>
Subject: 答复: [PATCH v2] ASoC: ti: davinci-mcasp: fix error handling in davinci_mcasp_probe
Date: Mon, 2 Nov 2020 09:25:16 +0000	[thread overview]
Message-ID: <7c5bced4ad3f4e348241fbbe28cf7ef5@huawei.com> (raw)
In-Reply-To: <e8e537db-cda7-fe9e-5d34-77da8d992a6c@ti.com>

Hi

> 
> Hi,
> 
> On 02/11/2020 11.07, Peter Ujfalusi wrote:
> >
> >
> > On 02/11/2020 10.54, Zhang Qilong wrote:
> >> Forgetting to call pm_runtime_disable if davinci_mcasp_get_dt_params
> >> failed in function davinci_mcasp_probe, and we should go to error
> >> handling branch.
> >
> > Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> 
> Actually...
> 
> >
> >> Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
> >> ---
> >> Changelog:
> >> V2
> >> - changed the subject and fixed the description.
> >> ---
> >>  sound/soc/ti/davinci-mcasp.c | 6 ++++--
> >>  1 file changed, 4 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/sound/soc/ti/davinci-mcasp.c
> >> b/sound/soc/ti/davinci-mcasp.c index 4b46dd827f3f..ec90c23c9e20
> >> 100644
> >> --- a/sound/soc/ti/davinci-mcasp.c
> >> +++ b/sound/soc/ti/davinci-mcasp.c
> >> @@ -2362,8 +2362,10 @@ static int davinci_mcasp_probe(struct
> platform_device *pdev)
> >>  		goto err;
> >>
> >>  	ret = davinci_mcasp_get_dt_params(mcasp);
> >> -	if (ret)
> >> -		return -EINVAL;
> >> +	if (ret) {
> >> +		ret = -EINVAL;
> >> +		goto err;
> 
> do not override the error code from davinci_mcasp_get_dt_params(), jut jump
> to err.
>

I have ever thought this point. I can't make sure it's necessary, davinci_mcasp_get_dt_params always return 0 now.
If it's necessary, I can submit a new patch to fix it. Look forward to your reply sincerely.

Thanks, best wish!
Zhang Qilong

> >> +	}
> >>
> >>  	ret = devm_snd_soc_register_component(&pdev->dev,
> >>  					&davinci_mcasp_component,
> >>
> >
> > - Péter
> >
> > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
> >
> 
> - Péter
> 
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

  reply	other threads:[~2020-11-03  7:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-02  8:54 [PATCH v2] ASoC: ti: davinci-mcasp: fix error handling in davinci_mcasp_probe Zhang Qilong
2020-11-02  9:07 ` Peter Ujfalusi
2020-11-02  9:10   ` Peter Ujfalusi
2020-11-02  9:25     ` zhangqilong [this message]
2020-11-02  9:47       ` 答复: " Peter Ujfalusi

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=7c5bced4ad3f4e348241fbbe28cf7ef5@huawei.com \
    --to=zhangqilong3@huawei.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=perex@perex.cz \
    --cc=peter.ujfalusi@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.