alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe"
@ 2022-10-08 13:43 Zhang Qilong
  2022-10-08 13:43 ` [PATCH -next 1/3] Revert "ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe" Zhang Qilong
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Zhang Qilong @ 2022-10-08 13:43 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, matthias.bgg, ckeepax,
	jeff_chang
  Cc: patches, alsa-devel, linux-mediatek

Both the old and new patch have been applied, it will resulted in
redundant calling of pm_runtime_disable when error returns. We Just
revert the old three patches to fix it.

Zhang Qilong (3):
  Revert "ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe"
  Revert "ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe"
  Revert "ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe"

 sound/soc/codecs/wm5102.c | 6 +++---
 sound/soc/codecs/wm5110.c | 6 +++---
 sound/soc/codecs/wm8997.c | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH -next 1/3] Revert "ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe"
  2022-10-08 13:43 [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Zhang Qilong
@ 2022-10-08 13:43 ` Zhang Qilong
  2022-10-08 13:43 ` [PATCH -next 2/3] Revert "ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe" Zhang Qilong
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Zhang Qilong @ 2022-10-08 13:43 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, matthias.bgg, ckeepax,
	jeff_chang
  Cc: patches, alsa-devel, linux-mediatek

This reverts commit fcbb60820cd3008bb44334a0395e5e57ccb77329.

The pm_runtime_disable is redundant when error returns in
wm5102_probe, we just revert the old patch to fix it.

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
---
 sound/soc/codecs/wm5102.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c
index e56e30d59760..adaf886b0a9d 100644
--- a/sound/soc/codecs/wm5102.c
+++ b/sound/soc/codecs/wm5102.c
@@ -2099,6 +2099,9 @@ static int wm5102_probe(struct platform_device *pdev)
 		regmap_update_bits(arizona->regmap, wm5102_digital_vu[i],
 				   WM5102_DIG_VU, WM5102_DIG_VU);
 
+	pm_runtime_enable(&pdev->dev);
+	pm_runtime_idle(&pdev->dev);
+
 	ret = arizona_request_irq(arizona, ARIZONA_IRQ_DSP_IRQ1,
 				  "ADSP2 Compressed IRQ", wm5102_adsp2_irq,
 				  wm5102);
@@ -2131,9 +2134,6 @@ static int wm5102_probe(struct platform_device *pdev)
 		goto err_spk_irqs;
 	}
 
-	pm_runtime_enable(&pdev->dev);
-	pm_runtime_idle(&pdev->dev);
-
 	return ret;
 
 err_spk_irqs:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH -next 2/3] Revert "ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe"
  2022-10-08 13:43 [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Zhang Qilong
  2022-10-08 13:43 ` [PATCH -next 1/3] Revert "ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe" Zhang Qilong
@ 2022-10-08 13:43 ` Zhang Qilong
  2022-10-08 13:43 ` [PATCH -next 3/3] Revert "ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe" Zhang Qilong
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Zhang Qilong @ 2022-10-08 13:43 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, matthias.bgg, ckeepax,
	jeff_chang
  Cc: patches, alsa-devel, linux-mediatek

This reverts commit 86b46bf1feb83898d89a2b4a8d08d21e9ea277a7.

The pm_runtime_disable is redundant when error returns in
wm5110_probe, we just revert the old patch to fix it.

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
---
 sound/soc/codecs/wm5110.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c
index 8a61563eae11..e0b971620d0f 100644
--- a/sound/soc/codecs/wm5110.c
+++ b/sound/soc/codecs/wm5110.c
@@ -2457,6 +2457,9 @@ static int wm5110_probe(struct platform_device *pdev)
 		regmap_update_bits(arizona->regmap, wm5110_digital_vu[i],
 				   WM5110_DIG_VU, WM5110_DIG_VU);
 
+	pm_runtime_enable(&pdev->dev);
+	pm_runtime_idle(&pdev->dev);
+
 	ret = arizona_request_irq(arizona, ARIZONA_IRQ_DSP_IRQ1,
 				  "ADSP2 Compressed IRQ", wm5110_adsp2_irq,
 				  wm5110);
@@ -2489,9 +2492,6 @@ static int wm5110_probe(struct platform_device *pdev)
 		goto err_spk_irqs;
 	}
 
-	pm_runtime_enable(&pdev->dev);
-	pm_runtime_idle(&pdev->dev);
-
 	return ret;
 
 err_spk_irqs:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH -next 3/3] Revert "ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe"
  2022-10-08 13:43 [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Zhang Qilong
  2022-10-08 13:43 ` [PATCH -next 1/3] Revert "ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe" Zhang Qilong
  2022-10-08 13:43 ` [PATCH -next 2/3] Revert "ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe" Zhang Qilong
@ 2022-10-08 13:43 ` Zhang Qilong
  2022-10-10  9:09 ` [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Charles Keepax
  2022-10-10 10:39 ` Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Zhang Qilong @ 2022-10-08 13:43 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, matthias.bgg, ckeepax,
	jeff_chang
  Cc: patches, alsa-devel, linux-mediatek

This reverts commit 41a736ac20602f64773e80f0f5b32cde1830a44a.

The pm_runtime_disable is redundant when error returns in
wm8997_probe, we just revert the old patch to fix it.

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
---
 sound/soc/codecs/wm8997.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c
index f8993176d5c0..c0207e9a7d53 100644
--- a/sound/soc/codecs/wm8997.c
+++ b/sound/soc/codecs/wm8997.c
@@ -1161,6 +1161,9 @@ static int wm8997_probe(struct platform_device *pdev)
 		regmap_update_bits(arizona->regmap, wm8997_digital_vu[i],
 				   WM8997_DIG_VU, WM8997_DIG_VU);
 
+	pm_runtime_enable(&pdev->dev);
+	pm_runtime_idle(&pdev->dev);
+
 	arizona_init_common(arizona);
 
 	ret = arizona_init_vol_limit(arizona);
@@ -1179,9 +1182,6 @@ static int wm8997_probe(struct platform_device *pdev)
 		goto err_spk_irqs;
 	}
 
-	pm_runtime_enable(&pdev->dev);
-	pm_runtime_idle(&pdev->dev);
-
 	return ret;
 
 err_spk_irqs:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe"
  2022-10-08 13:43 [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Zhang Qilong
                   ` (2 preceding siblings ...)
  2022-10-08 13:43 ` [PATCH -next 3/3] Revert "ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe" Zhang Qilong
@ 2022-10-10  9:09 ` Charles Keepax
  2022-10-10 10:39 ` Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Charles Keepax @ 2022-10-10  9:09 UTC (permalink / raw)
  To: Zhang Qilong
  Cc: alsa-devel, patches, tiwai, lgirdwood, jeff_chang, broonie,
	linux-mediatek, matthias.bgg, ckeepax

On Sat, Oct 08, 2022 at 09:43:55PM +0800, Zhang Qilong wrote:
> Both the old and new patch have been applied, it will resulted in
> redundant calling of pm_runtime_disable when error returns. We Just
> revert the old three patches to fix it.
> 
> Zhang Qilong (3):
>   Revert "ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe"
>   Revert "ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe"
>   Revert "ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe"
> 
>  sound/soc/codecs/wm5102.c | 6 +++---
>  sound/soc/codecs/wm5110.c | 6 +++---
>  sound/soc/codecs/wm8997.c | 6 +++---
>  3 files changed, 9 insertions(+), 9 deletions(-)

Yeah we definitely don't want both applied:

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe"
  2022-10-08 13:43 [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Zhang Qilong
                   ` (3 preceding siblings ...)
  2022-10-10  9:09 ` [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Charles Keepax
@ 2022-10-10 10:39 ` Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-10-10 10:39 UTC (permalink / raw)
  To: Zhang Qilong
  Cc: alsa-devel, patches, tiwai, lgirdwood, jeff_chang, linux-mediatek,
	matthias.bgg, ckeepax

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

On Sat, Oct 08, 2022 at 09:43:55PM +0800, Zhang Qilong wrote:
> Both the old and new patch have been applied, it will resulted in
> redundant calling of pm_runtime_disable when error returns. We Just
> revert the old three patches to fix it.
> 
> Zhang Qilong (3):
>   Revert "ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe"
>   Revert "ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe"
>   Revert "ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe"

Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-10 10:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-08 13:43 [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Zhang Qilong
2022-10-08 13:43 ` [PATCH -next 1/3] Revert "ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe" Zhang Qilong
2022-10-08 13:43 ` [PATCH -next 2/3] Revert "ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe" Zhang Qilong
2022-10-08 13:43 ` [PATCH -next 3/3] Revert "ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe" Zhang Qilong
2022-10-10  9:09 ` [PATCH -next 0/3] Revert old "Fix PM disable depth imbalance in wmxxxx_probe" Charles Keepax
2022-10-10 10:39 ` Mark Brown

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).