From: Arnaud Pouliquen <arnaud.pouliquen@st.com>
To: Wei Yongjun <weiyj.lk@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Moise GERGAUD <moise.gergaud@st.com>
Cc: Wei Yongjun <weiyongjun1@huawei.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()
Date: Mon, 19 Sep 2016 09:27:03 +0200 [thread overview]
Message-ID: <357834f2-bae9-c481-785e-b5d4dd6f152b@st.com> (raw)
In-Reply-To: <1474076073-9569-1-git-send-email-weiyj.lk@gmail.com>
Hello Wei,
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Thanks!
On 09/17/2016 03:34 AM, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Fix the missing clk_disable_unprepare() before return
> from uni_player_start() in the error handling case.
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
> sound/soc/sti/uniperif_player.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/sti/uniperif_player.c b/sound/soc/sti/uniperif_player.c
> index 645e415..1bc8ebc 100644
> --- a/sound/soc/sti/uniperif_player.c
> +++ b/sound/soc/sti/uniperif_player.c
> @@ -893,8 +893,10 @@ static int uni_player_start(struct uniperif *player)
> SET_UNIPERIF_SOFT_RST_SOFT_RST(player);
>
> ret = reset_player(player);
> - if (ret < 0)
> + if (ret < 0) {
> + clk_disable_unprepare(player->clk);
> return ret;
> + }
>
> /*
> * Does not use IEC61937 features of the uniperipheral hardware.
>
next prev parent reply other threads:[~2016-09-19 7:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-17 1:34 Wei Yongjun
2016-09-19 7:27 ` Arnaud Pouliquen [this message]
2016-09-21 12:56 ` Applied "ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()" to the asoc tree Mark Brown
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=357834f2-bae9-c481-785e-b5d4dd6f152b@st.com \
--to=arnaud.pouliquen@st.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=moise.gergaud@st.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=weiyj.lk@gmail.com \
--cc=weiyongjun1@huawei.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
all inboxes | Powered by JetHome®