* [PATCH] Revert part of "ASoC: tegra: Convert to managed resources"
@ 2015-08-18 11:56 Vaishali Thakkar
2015-08-18 16:55 ` Mark Brown
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Vaishali Thakkar @ 2015-08-18 11:56 UTC (permalink / raw)
To: Mark Brown
Cc: Jaroslav Kysela, Takashi Iwai, Liam Girdwood, Stephen Warren,
Alexandre Courbot, Wolfram Sang, alsa-devel, linux-tegra,
linux-kernel
Revert the problematic part of commit 470805eb9f31 ("ASoC: tegra:
Convert to managed resources"). Before this commit, PM cleanup was
performed after the component was unregistered. But returning
directly will skip PM cleanup. So, to be on safe side it is better
to use snd_soc_register_component instead of
devm_snd_soc_register_component.
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
---
sound/soc/tegra/tegra20_spdif.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c
index a814da0..66237bc 100644
--- a/sound/soc/tegra/tegra20_spdif.c
+++ b/sound/soc/tegra/tegra20_spdif.c
@@ -329,9 +329,8 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)
goto err_pm_disable;
}
- ret = devm_snd_soc_register_component(&pdev->dev,
- &tegra20_spdif_component,
- &tegra20_spdif_dai, 1);
+ ret = snd_soc_register_component(&pdev->dev, &tegra20_spdif_component,
+ &tegra20_spdif_dai, 1);
if (ret) {
dev_err(&pdev->dev, "Could not register DAI: %d\n", ret);
ret = -ENOMEM;
@@ -341,11 +340,13 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)
ret = tegra_pcm_platform_register(&pdev->dev);
if (ret) {
dev_err(&pdev->dev, "Could not register PCM: %d\n", ret);
- return ret;
+ goto err_unregister_component;
}
return 0;
+err_unregister_component:
+ snd_soc_unregister_component(&pdev->dev);
err_suspend:
if (!pm_runtime_status_suspended(&pdev->dev))
tegra20_spdif_runtime_suspend(&pdev->dev);
@@ -364,6 +365,7 @@ static int tegra20_spdif_platform_remove(struct platform_device *pdev)
tegra20_spdif_runtime_suspend(&pdev->dev);
tegra_pcm_platform_unregister(&pdev->dev);
+ snd_soc_unregister_component(&pdev->dev);
return 0;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert part of "ASoC: tegra: Convert to managed resources"
2015-08-18 11:56 [PATCH] Revert part of "ASoC: tegra: Convert to managed resources" Vaishali Thakkar
@ 2015-08-18 16:55 ` Mark Brown
2015-08-18 16:55 ` Applied "ASoC: tegra: Revert part of "ASoC: tegra: Convert to managed resources"" to the asoc tree Mark Brown
2015-08-31 5:27 ` Alexandre Courbot
2 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2015-08-18 16:55 UTC (permalink / raw)
To: Vaishali Thakkar
Cc: Jaroslav Kysela, Takashi Iwai, Liam Girdwood, Stephen Warren,
Alexandre Courbot, Wolfram Sang,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 279 bytes --]
On Tue, Aug 18, 2015 at 05:26:45PM +0530, Vaishali Thakkar wrote:
> Revert the problematic part of commit 470805eb9f31 ("ASoC: tegra:
> Convert to managed resources"). Before this commit, PM cleanup was
Please use subject lines matching the style for the subsystem on
patches.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert part of "ASoC: tegra: Convert to managed resources"
@ 2015-08-18 16:55 ` Mark Brown
0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2015-08-18 16:55 UTC (permalink / raw)
To: Vaishali Thakkar
Cc: Jaroslav Kysela, Takashi Iwai, Liam Girdwood, Stephen Warren,
Alexandre Courbot, Wolfram Sang, alsa-devel, linux-tegra,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 279 bytes --]
On Tue, Aug 18, 2015 at 05:26:45PM +0530, Vaishali Thakkar wrote:
> Revert the problematic part of commit 470805eb9f31 ("ASoC: tegra:
> Convert to managed resources"). Before this commit, PM cleanup was
Please use subject lines matching the style for the subsystem on
patches.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Applied "ASoC: tegra: Revert part of "ASoC: tegra: Convert to managed resources"" to the asoc tree
2015-08-18 11:56 [PATCH] Revert part of "ASoC: tegra: Convert to managed resources" Vaishali Thakkar
2015-08-18 16:55 ` Mark Brown
@ 2015-08-18 16:55 ` Mark Brown
2015-08-31 5:27 ` Alexandre Courbot
2 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2015-08-18 16:55 UTC (permalink / raw)
To: Vaishali Thakkar, Mark Brown; +Cc: alsa-devel
The patch
ASoC: tegra: Revert part of "ASoC: tegra: Convert to managed resources"
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 1d15f21dc8030c4511964819b89b50e39d5a7013 Mon Sep 17 00:00:00 2001
From: Vaishali Thakkar <vthakkar1994@gmail.com>
Date: Tue, 18 Aug 2015 17:26:45 +0530
Subject: [PATCH] ASoC: tegra: Revert part of "ASoC: tegra: Convert to managed
resources"
Revert the problematic part of commit 470805eb9f31 ("ASoC: tegra:
Convert to managed resources"). Before this commit, PM cleanup was
performed after the component was unregistered. But returning
directly will skip PM cleanup. So, to be on safe side it is better
to use snd_soc_register_component instead of
devm_snd_soc_register_component.
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/tegra/tegra20_spdif.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c
index a814da0..66237bc 100644
--- a/sound/soc/tegra/tegra20_spdif.c
+++ b/sound/soc/tegra/tegra20_spdif.c
@@ -329,9 +329,8 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)
goto err_pm_disable;
}
- ret = devm_snd_soc_register_component(&pdev->dev,
- &tegra20_spdif_component,
- &tegra20_spdif_dai, 1);
+ ret = snd_soc_register_component(&pdev->dev, &tegra20_spdif_component,
+ &tegra20_spdif_dai, 1);
if (ret) {
dev_err(&pdev->dev, "Could not register DAI: %d\n", ret);
ret = -ENOMEM;
@@ -341,11 +340,13 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)
ret = tegra_pcm_platform_register(&pdev->dev);
if (ret) {
dev_err(&pdev->dev, "Could not register PCM: %d\n", ret);
- return ret;
+ goto err_unregister_component;
}
return 0;
+err_unregister_component:
+ snd_soc_unregister_component(&pdev->dev);
err_suspend:
if (!pm_runtime_status_suspended(&pdev->dev))
tegra20_spdif_runtime_suspend(&pdev->dev);
@@ -364,6 +365,7 @@ static int tegra20_spdif_platform_remove(struct platform_device *pdev)
tegra20_spdif_runtime_suspend(&pdev->dev);
tegra_pcm_platform_unregister(&pdev->dev);
+ snd_soc_unregister_component(&pdev->dev);
return 0;
}
--
2.5.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert part of "ASoC: tegra: Convert to managed resources"
2015-08-18 16:55 ` Mark Brown
(?)
@ 2015-08-18 17:01 ` Vaishali Thakkar
-1 siblings, 0 replies; 7+ messages in thread
From: Vaishali Thakkar @ 2015-08-18 17:01 UTC (permalink / raw)
To: Mark Brown
Cc: Alexandre Courbot, alsa-devel, Stephen Warren, Wolfram Sang,
linux-kernel, Takashi Iwai, Liam Girdwood, linux-tegra
On 18 Aug 2015 22:25, "Mark Brown" <broonie@kernel.org> wrote:
>
> On Tue, Aug 18, 2015 at 05:26:45PM +0530, Vaishali Thakkar wrote:
>
> > Revert the problematic part of commit 470805eb9f31 ("ASoC: tegra:
> > Convert to managed resources"). Before this commit, PM cleanup was
>
> Please use subject lines matching the style for the subsystem on
> patches.
Oh, I am sorry.
I'll keep this in mind for next time. Thanks for making it suitable and
applying the patch.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert part of "ASoC: tegra: Convert to managed resources"
2015-08-18 11:56 [PATCH] Revert part of "ASoC: tegra: Convert to managed resources" Vaishali Thakkar
@ 2015-08-31 5:27 ` Alexandre Courbot
2015-08-18 16:55 ` Applied "ASoC: tegra: Revert part of "ASoC: tegra: Convert to managed resources"" to the asoc tree Mark Brown
2015-08-31 5:27 ` Alexandre Courbot
2 siblings, 0 replies; 7+ messages in thread
From: Alexandre Courbot @ 2015-08-31 5:27 UTC (permalink / raw)
To: Vaishali Thakkar
Cc: Mark Brown, Jaroslav Kysela, Takashi Iwai, Liam Girdwood,
Stephen Warren, Wolfram Sang,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Linux Kernel Mailing List
On Tue, Aug 18, 2015 at 8:56 PM, Vaishali Thakkar
<vthakkar1994-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Revert the problematic part of commit 470805eb9f31 ("ASoC: tegra:
> Convert to managed resources"). Before this commit, PM cleanup was
> performed after the component was unregistered. But returning
> directly will skip PM cleanup. So, to be on safe side it is better
> to use snd_soc_register_component instead of
> devm_snd_soc_register_component.
>
> Signed-off-by: Vaishali Thakkar <vthakkar1994-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
I'm probably late for the party, but FWIW:
Reviewed-by: Alexandre Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert part of "ASoC: tegra: Convert to managed resources"
@ 2015-08-31 5:27 ` Alexandre Courbot
0 siblings, 0 replies; 7+ messages in thread
From: Alexandre Courbot @ 2015-08-31 5:27 UTC (permalink / raw)
To: Vaishali Thakkar
Cc: Mark Brown, Jaroslav Kysela, Takashi Iwai, Liam Girdwood,
Stephen Warren, Wolfram Sang, alsa-devel@alsa-project.org,
linux-tegra@vger.kernel.org, Linux Kernel Mailing List
On Tue, Aug 18, 2015 at 8:56 PM, Vaishali Thakkar
<vthakkar1994@gmail.com> wrote:
> Revert the problematic part of commit 470805eb9f31 ("ASoC: tegra:
> Convert to managed resources"). Before this commit, PM cleanup was
> performed after the component was unregistered. But returning
> directly will skip PM cleanup. So, to be on safe side it is better
> to use snd_soc_register_component instead of
> devm_snd_soc_register_component.
>
> Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
I'm probably late for the party, but FWIW:
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-08-31 5:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18 11:56 [PATCH] Revert part of "ASoC: tegra: Convert to managed resources" Vaishali Thakkar
2015-08-18 16:55 ` Mark Brown
2015-08-18 16:55 ` Mark Brown
2015-08-18 17:01 ` Vaishali Thakkar
2015-08-18 16:55 ` Applied "ASoC: tegra: Revert part of "ASoC: tegra: Convert to managed resources"" to the asoc tree Mark Brown
2015-08-31 5:27 ` [PATCH] Revert part of "ASoC: tegra: Convert to managed resources" Alexandre Courbot
2015-08-31 5:27 ` Alexandre Courbot
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.