Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1485456 > unrolled thread

[PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()

Started byWei Yongjun <weiyj.lk@gmail.com>
First post2016-09-17 03:40 +0200
Last post2016-09-21 15:00 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start() Wei Yongjun <weiyj.lk@gmail.com> - 2016-09-17 03:40 +0200
    Re: [PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on  error in uni_player_start() Arnaud Pouliquen <arnaud.pouliquen@st.com> - 2016-09-19 09:30 +0200
    Applied "ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-09-21 15:00 +0200

#1485456 — [PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()

FromWei Yongjun <weiyj.lk@gmail.com>
Date2016-09-17 03:40 +0200
Subject[PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()
Message-ID<sicLL-4iK-3@gated-at.bofh.it>
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.

[toc] | [next] | [standalone]


#1486200 — Re: [PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()

FromArnaud Pouliquen <arnaud.pouliquen@st.com>
Date2016-09-19 09:30 +0200
SubjectRe: [PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()
Message-ID<sj1bz-2rl-19@gated-at.bofh.it>
In reply to#1485456
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.
> 

[toc] | [prev] | [next] | [standalone]


#1488108 — Applied "ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()" to the asoc tree

FromMark Brown <broonie@kernel.org>
Date2016-09-21 15:00 +0200
SubjectApplied "ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()" to the asoc tree
Message-ID<sjPi2-Ff-13@gated-at.bofh.it>
In reply to#1485456
The patch

   ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

From b7c8c5d6927f9e6f3b4c0f8fcc99daa4568ad185 Mon Sep 17 00:00:00 2001
From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Sat, 17 Sep 2016 01:34:33 +0000
Subject: [PATCH] ASoC: sti: fix missing clk_disable_unprepare() on error in
 uni_player_start()

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>
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 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 645e4152e6a1..1bc8ebc2528e 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.
-- 
2.8.1

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web