All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable()
@ 2026-12-04 11:22 phucduc.bui
  2026-12-04 11:22 ` [PATCH 01/11] ASoC: tegra: asrc: " phucduc.bui
                   ` (11 more replies)
  0 siblings, 12 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Hi all,

Use devm_pm_runtime_enable() in the Tegra drivers and drop
the corresponding remove callbacks.

Compile-tested only.

Best regards,
Phuc

bui duc phuc (11):
  ASoC: tegra: asrc: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra186_dspk: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_adx: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_ahub: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_amx: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_dmic: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_i2s: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_mixer: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_mvc: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_ope: Use devm_pm_runtime_enable()
  ASoC: tegra: tegra210_sfc: Use devm_pm_runtime_enable()

 sound/soc/tegra/tegra186_asrc.c  | 12 ++++--------
 sound/soc/tegra/tegra186_dspk.c  | 12 ++++--------
 sound/soc/tegra/tegra210_adx.c   | 12 ++++--------
 sound/soc/tegra/tegra210_ahub.c  | 16 +++++-----------
 sound/soc/tegra/tegra210_amx.c   | 12 ++++--------
 sound/soc/tegra/tegra210_dmic.c  | 12 ++++--------
 sound/soc/tegra/tegra210_i2s.c   | 12 ++++--------
 sound/soc/tegra/tegra210_mixer.c | 12 ++++--------
 sound/soc/tegra/tegra210_mvc.c   | 12 ++++--------
 sound/soc/tegra/tegra210_ope.c   | 12 ++++--------
 sound/soc/tegra/tegra210_sfc.c   | 12 ++++--------
 11 files changed, 45 insertions(+), 91 deletions(-)

-- 
2.43.0


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

* [PATCH 01/11] ASoC: tegra: asrc: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 12:28   ` Thierry Reding
  2026-12-04 11:22 ` [PATCH 02/11] ASoC: tegra: tegra186_dspk: " phucduc.bui
                   ` (10 subsequent siblings)
  11 siblings, 1 reply; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra186_asrc.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra186_asrc.c b/sound/soc/tegra/tegra186_asrc.c
index 07ad7b3b8604..a86db35cf920 100644
--- a/sound/soc/tegra/tegra186_asrc.c
+++ b/sound/soc/tegra/tegra186_asrc.c
@@ -1182,6 +1182,10 @@ static int tegra186_asrc_platform_probe(struct platform_device *pdev)
 
 	mutex_init(&asrc->ratio_lock);
 
+	err = devm_pm_runtime_enable(dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra186_asrc_cmpnt,
 					      tegra186_asrc_dais,
 					      ARRAY_SIZE(tegra186_asrc_dais));
@@ -1189,16 +1193,9 @@ static int tegra186_asrc_platform_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register ASRC component\n");
 
-	pm_runtime_enable(dev);
-
 	return 0;
 }
 
-static void tegra186_asrc_platform_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra186_asrc_pm_ops = {
 	RUNTIME_PM_OPS(tegra186_asrc_runtime_suspend,
 		       tegra186_asrc_runtime_resume, NULL)
@@ -1212,7 +1209,6 @@ static struct platform_driver tegra186_asrc_driver = {
 		.pm = pm_ptr(&tegra186_asrc_pm_ops),
 	},
 	.probe = tegra186_asrc_platform_probe,
-	.remove = tegra186_asrc_platform_remove,
 };
 module_platform_driver(tegra186_asrc_driver)
 
-- 
2.43.0


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

* [PATCH 02/11] ASoC: tegra: tegra186_dspk: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
  2026-12-04 11:22 ` [PATCH 01/11] ASoC: tegra: asrc: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 03/11] ASoC: tegra: tegra210_adx: " phucduc.bui
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra186_dspk.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra186_dspk.c b/sound/soc/tegra/tegra186_dspk.c
index 8896f4f937f6..98c6afdf8a66 100644
--- a/sound/soc/tegra/tegra186_dspk.c
+++ b/sound/soc/tegra/tegra186_dspk.c
@@ -510,6 +510,10 @@ static int tegra186_dspk_platform_probe(struct platform_device *pdev)
 
 	regcache_cache_only(dspk->regmap, true);
 
+	err = devm_pm_runtime_enable(dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra186_dspk_cmpnt,
 					      tegra186_dspk_dais,
 					      ARRAY_SIZE(tegra186_dspk_dais));
@@ -517,16 +521,9 @@ static int tegra186_dspk_platform_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register DSPK component\n");
 
-	pm_runtime_enable(dev);
-
 	return 0;
 }
 
-static void tegra186_dspk_platform_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra186_dspk_pm_ops = {
 	RUNTIME_PM_OPS(tegra186_dspk_runtime_suspend,
 		       tegra186_dspk_runtime_resume, NULL)
@@ -540,7 +537,6 @@ static struct platform_driver tegra186_dspk_driver = {
 		.pm = pm_ptr(&tegra186_dspk_pm_ops),
 	},
 	.probe = tegra186_dspk_platform_probe,
-	.remove = tegra186_dspk_platform_remove,
 };
 module_platform_driver(tegra186_dspk_driver);
 
-- 
2.43.0


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

* [PATCH 03/11] ASoC: tegra: tegra210_adx: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
  2026-12-04 11:22 ` [PATCH 01/11] ASoC: tegra: asrc: " phucduc.bui
  2026-12-04 11:22 ` [PATCH 02/11] ASoC: tegra: tegra186_dspk: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 04/11] ASoC: tegra: tegra210_ahub: " phucduc.bui
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_adx.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_adx.c b/sound/soc/tegra/tegra210_adx.c
index 9b2d9f1db511..238527382a11 100644
--- a/sound/soc/tegra/tegra210_adx.c
+++ b/sound/soc/tegra/tegra210_adx.c
@@ -710,6 +710,10 @@ static int tegra210_adx_platform_probe(struct platform_device *pdev)
 	tegra210_adx_dais[TEGRA_ADX_IN_DAI_ID].playback.channels_max =
 			adx->soc_data->max_ch;
 
+	err = devm_pm_runtime_enable(&pdev->dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra210_adx_cmpnt,
 					      tegra210_adx_dais,
 					      ARRAY_SIZE(tegra210_adx_dais));
@@ -717,16 +721,9 @@ static int tegra210_adx_platform_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register ADX component\n");
 
-	pm_runtime_enable(dev);
-
 	return 0;
 }
 
-static void tegra210_adx_platform_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra210_adx_pm_ops = {
 	RUNTIME_PM_OPS(tegra210_adx_runtime_suspend,
 		       tegra210_adx_runtime_resume, NULL)
@@ -740,7 +737,6 @@ static struct platform_driver tegra210_adx_driver = {
 		.pm = pm_ptr(&tegra210_adx_pm_ops),
 	},
 	.probe = tegra210_adx_platform_probe,
-	.remove = tegra210_adx_platform_remove,
 };
 module_platform_driver(tegra210_adx_driver);
 
-- 
2.43.0


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

* [PATCH 04/11] ASoC: tegra: tegra210_ahub: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (2 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 03/11] ASoC: tegra: tegra210_adx: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 05/11] ASoC: tegra: tegra210_amx: " phucduc.bui
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_ahub.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/sound/soc/tegra/tegra210_ahub.c b/sound/soc/tegra/tegra210_ahub.c
index 3deaa599f53a..943bd335eadc 100644
--- a/sound/soc/tegra/tegra210_ahub.c
+++ b/sound/soc/tegra/tegra210_ahub.c
@@ -2632,6 +2632,10 @@ static int tegra_ahub_probe(struct platform_device *pdev)
 
 	regcache_cache_only(ahub->regmap, true);
 
+	err = devm_pm_runtime_enable(&pdev->dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(&pdev->dev,
 					      ahub->soc_data->cmpnt_drv,
 					      ahub->soc_data->dai_drv,
@@ -2640,23 +2644,14 @@ static int tegra_ahub_probe(struct platform_device *pdev)
 		return dev_err_probe(&pdev->dev, err,
 				     "can't register AHUB component\n");
 
-	pm_runtime_enable(&pdev->dev);
-
 	err = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
-	if (err) {
-		pm_runtime_disable(&pdev->dev);
+	if (err)
 		return dev_err_probe(&pdev->dev, err,
 				     "failed to populate child nodes\n");
-	}
 
 	return 0;
 }
 
-static void tegra_ahub_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra_ahub_pm_ops = {
 	RUNTIME_PM_OPS(tegra_ahub_runtime_suspend,
 		       tegra_ahub_runtime_resume, NULL)
@@ -2665,7 +2660,6 @@ static const struct dev_pm_ops tegra_ahub_pm_ops = {
 
 static struct platform_driver tegra_ahub_driver = {
 	.probe = tegra_ahub_probe,
-	.remove = tegra_ahub_remove,
 	.driver = {
 		.name = "tegra210-ahub",
 		.of_match_table = tegra_ahub_of_match,
-- 
2.43.0


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

* [PATCH 05/11] ASoC: tegra: tegra210_amx: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (3 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 04/11] ASoC: tegra: tegra210_ahub: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 06/11] ASoC: tegra: tegra210_dmic: " phucduc.bui
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_amx.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_amx.c b/sound/soc/tegra/tegra210_amx.c
index 2288656a3278..a549995896ff 100644
--- a/sound/soc/tegra/tegra210_amx.c
+++ b/sound/soc/tegra/tegra210_amx.c
@@ -763,6 +763,10 @@ static int tegra210_amx_platform_probe(struct platform_device *pdev)
 	tegra210_amx_dais[TEGRA_AMX_OUT_DAI_ID].capture.channels_max =
 			amx->soc_data->max_ch;
 
+	err = devm_pm_runtime_enable(dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra210_amx_cmpnt,
 					      tegra210_amx_dais,
 					      ARRAY_SIZE(tegra210_amx_dais));
@@ -770,16 +774,9 @@ static int tegra210_amx_platform_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register AMX component\n");
 
-	pm_runtime_enable(dev);
-
 	return 0;
 }
 
-static void tegra210_amx_platform_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra210_amx_pm_ops = {
 	RUNTIME_PM_OPS(tegra210_amx_runtime_suspend,
 		       tegra210_amx_runtime_resume, NULL)
@@ -793,7 +790,6 @@ static struct platform_driver tegra210_amx_driver = {
 		.pm = pm_ptr(&tegra210_amx_pm_ops),
 	},
 	.probe = tegra210_amx_platform_probe,
-	.remove = tegra210_amx_platform_remove,
 };
 module_platform_driver(tegra210_amx_driver);
 
-- 
2.43.0


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

* [PATCH 06/11] ASoC: tegra: tegra210_dmic: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (4 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 05/11] ASoC: tegra: tegra210_amx: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 07/11] ASoC: tegra: tegra210_i2s: " phucduc.bui
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_dmic.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_dmic.c b/sound/soc/tegra/tegra210_dmic.c
index 3123057abfe8..4a9e7d0f1c57 100644
--- a/sound/soc/tegra/tegra210_dmic.c
+++ b/sound/soc/tegra/tegra210_dmic.c
@@ -522,6 +522,10 @@ static int tegra210_dmic_probe(struct platform_device *pdev)
 
 	regcache_cache_only(dmic->regmap, true);
 
+	err = devm_pm_runtime_enable(dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra210_dmic_compnt,
 					      tegra210_dmic_dais,
 					      ARRAY_SIZE(tegra210_dmic_dais));
@@ -529,16 +533,9 @@ static int tegra210_dmic_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register DMIC component\n");
 
-	pm_runtime_enable(dev);
-
 	return 0;
 }
 
-static void tegra210_dmic_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra210_dmic_pm_ops = {
 	RUNTIME_PM_OPS(tegra210_dmic_runtime_suspend,
 		       tegra210_dmic_runtime_resume, NULL)
@@ -558,7 +555,6 @@ static struct platform_driver tegra210_dmic_driver = {
 		.pm = pm_ptr(&tegra210_dmic_pm_ops),
 	},
 	.probe = tegra210_dmic_probe,
-	.remove = tegra210_dmic_remove,
 };
 module_platform_driver(tegra210_dmic_driver)
 
-- 
2.43.0


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

* [PATCH 07/11] ASoC: tegra: tegra210_i2s: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (5 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 06/11] ASoC: tegra: tegra210_dmic: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 08/11] ASoC: tegra: tegra210_mixer: " phucduc.bui
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_i2s.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_i2s.c b/sound/soc/tegra/tegra210_i2s.c
index 72e3cb0ab3c0..d585d6474a36 100644
--- a/sound/soc/tegra/tegra210_i2s.c
+++ b/sound/soc/tegra/tegra210_i2s.c
@@ -1131,6 +1131,10 @@ static int tegra210_i2s_probe(struct platform_device *pdev)
 		tegra210_i2s_dais[id].capture.channels_max = i2s->soc_data->max_ch;
 	}
 
+	err = devm_pm_runtime_enable(dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, i2s->soc_data->i2s_cmpnt,
 					      tegra210_i2s_dais,
 					      ARRAY_SIZE(tegra210_i2s_dais));
@@ -1138,16 +1142,9 @@ static int tegra210_i2s_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register I2S component\n");
 
-	pm_runtime_enable(dev);
-
 	return 0;
 }
 
-static void tegra210_i2s_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra210_i2s_pm_ops = {
 	RUNTIME_PM_OPS(tegra210_i2s_runtime_suspend,
 		       tegra210_i2s_runtime_resume, NULL)
@@ -1192,7 +1189,6 @@ static struct platform_driver tegra210_i2s_driver = {
 		.pm = pm_ptr(&tegra210_i2s_pm_ops),
 	},
 	.probe = tegra210_i2s_probe,
-	.remove = tegra210_i2s_remove,
 };
 module_platform_driver(tegra210_i2s_driver)
 
-- 
2.43.0


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

* [PATCH 08/11] ASoC: tegra: tegra210_mixer: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (6 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 07/11] ASoC: tegra: tegra210_i2s: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 09/11] ASoC: tegra: tegra210_mvc: " phucduc.bui
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_mixer.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_mixer.c b/sound/soc/tegra/tegra210_mixer.c
index 1c19c8c35466..c97b8491f661 100644
--- a/sound/soc/tegra/tegra210_mixer.c
+++ b/sound/soc/tegra/tegra210_mixer.c
@@ -924,6 +924,10 @@ static int tegra210_mixer_platform_probe(struct platform_device *pdev)
 
 	regcache_cache_only(mixer->regmap, true);
 
+	err = devm_pm_runtime_enable(dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra210_mixer_cmpnt,
 					      tegra210_mixer_dais,
 					      ARRAY_SIZE(tegra210_mixer_dais));
@@ -931,16 +935,9 @@ static int tegra210_mixer_platform_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register MIXER component\n");
 
-	pm_runtime_enable(dev);
-
 	return 0;
 }
 
-static void tegra210_mixer_platform_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra210_mixer_pm_ops = {
 	RUNTIME_PM_OPS(tegra210_mixer_runtime_suspend,
 		       tegra210_mixer_runtime_resume, NULL)
@@ -954,7 +951,6 @@ static struct platform_driver tegra210_mixer_driver = {
 		.pm = pm_ptr(&tegra210_mixer_pm_ops),
 	},
 	.probe = tegra210_mixer_platform_probe,
-	.remove = tegra210_mixer_platform_remove,
 };
 module_platform_driver(tegra210_mixer_driver);
 
-- 
2.43.0


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

* [PATCH 09/11] ASoC: tegra: tegra210_mvc: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (7 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 08/11] ASoC: tegra: tegra210_mixer: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 10/11] ASoC: tegra: tegra210_ope: " phucduc.bui
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_mvc.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_mvc.c b/sound/soc/tegra/tegra210_mvc.c
index a3f8aeb94cef..c39d29566209 100644
--- a/sound/soc/tegra/tegra210_mvc.c
+++ b/sound/soc/tegra/tegra210_mvc.c
@@ -739,6 +739,10 @@ static int tegra210_mvc_platform_probe(struct platform_device *pdev)
 
 	regcache_cache_only(mvc->regmap, true);
 
+	err = devm_pm_runtime_enable(dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra210_mvc_cmpnt,
 					      tegra210_mvc_dais,
 					      ARRAY_SIZE(tegra210_mvc_dais));
@@ -746,18 +750,11 @@ static int tegra210_mvc_platform_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register MVC component\n");
 
-	pm_runtime_enable(dev);
-
 	tegra210_mvc_reset_vol_settings(mvc, &pdev->dev);
 
 	return 0;
 }
 
-static void tegra210_mvc_platform_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra210_mvc_pm_ops = {
 	RUNTIME_PM_OPS(tegra210_mvc_runtime_suspend,
 		       tegra210_mvc_runtime_resume, NULL)
@@ -771,7 +768,6 @@ static struct platform_driver tegra210_mvc_driver = {
 		.pm = pm_ptr(&tegra210_mvc_pm_ops),
 	},
 	.probe = tegra210_mvc_platform_probe,
-	.remove = tegra210_mvc_platform_remove,
 };
 module_platform_driver(tegra210_mvc_driver)
 
-- 
2.43.0


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

* [PATCH 10/11] ASoC: tegra: tegra210_ope: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (8 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 09/11] ASoC: tegra: tegra210_mvc: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 11:22 ` [PATCH 11/11] ASoC: tegra: tegra210_sfc: " phucduc.bui
  2026-12-04 12:29 ` [PATCH 00/11] ASoC: tegra: " Thierry Reding
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_ope.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_ope.c b/sound/soc/tegra/tegra210_ope.c
index fe7ce939aae0..e753664e388e 100644
--- a/sound/soc/tegra/tegra210_ope.c
+++ b/sound/soc/tegra/tegra210_ope.c
@@ -333,6 +333,10 @@ static int tegra210_ope_probe(struct platform_device *pdev)
 	if (err < 0)
 		return err;
 
+	err = devm_pm_runtime_enable(dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra210_ope_cmpnt,
 					      tegra210_ope_dais,
 					      ARRAY_SIZE(tegra210_ope_dais));
@@ -340,16 +344,9 @@ static int tegra210_ope_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register OPE component\n");
 
-	pm_runtime_enable(dev);
-
 	return 0;
 }
 
-static void tegra210_ope_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static int tegra210_ope_runtime_suspend(struct device *dev)
 {
 	struct tegra210_ope *ope = dev_get_drvdata(dev);
@@ -405,7 +402,6 @@ static struct platform_driver tegra210_ope_driver = {
 		.pm = pm_ptr(&tegra210_ope_pm_ops),
 	},
 	.probe = tegra210_ope_probe,
-	.remove = tegra210_ope_remove,
 };
 module_platform_driver(tegra210_ope_driver)
 
-- 
2.43.0


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

* [PATCH 11/11] ASoC: tegra: tegra210_sfc: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (9 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 10/11] ASoC: tegra: tegra210_ope: " phucduc.bui
@ 2026-12-04 11:22 ` phucduc.bui
  2026-12-04 12:29 ` [PATCH 00/11] ASoC: tegra: " Thierry Reding
  11 siblings, 0 replies; 15+ messages in thread
From: phucduc.bui @ 2026-12-04 11:22 UTC (permalink / raw)
  To: Mark Brown, Thierry Reding, Jonathan Hunter
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Sheetal,
	Kuninori Morimoto, Takashi Sakamoto, Kees Cook, u.kleine-koenig,
	Danilo Krummrich, Rosen Penev, Piyush Patle, Chen Ni,
	HyeongJun An, Anupama Kunkulagunta, Peter Ujfalusi, Bjorn Helgaas,
	linux-tegra, linux-sound, linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/tegra/tegra210_sfc.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_sfc.c b/sound/soc/tegra/tegra210_sfc.c
index d86cb2276630..d9e5b5a6fb47 100644
--- a/sound/soc/tegra/tegra210_sfc.c
+++ b/sound/soc/tegra/tegra210_sfc.c
@@ -3604,6 +3604,10 @@ static int tegra210_sfc_platform_probe(struct platform_device *pdev)
 
 	regcache_cache_only(sfc->regmap, true);
 
+	err = devm_pm_runtime_enable(&pdev->dev);
+	if (err)
+		return err;
+
 	err = devm_snd_soc_register_component(dev, &tegra210_sfc_cmpnt,
 					      tegra210_sfc_dais,
 					      ARRAY_SIZE(tegra210_sfc_dais));
@@ -3611,16 +3615,9 @@ static int tegra210_sfc_platform_probe(struct platform_device *pdev)
 		return dev_err_probe(dev, err,
 				     "can't register SFC component\n");
 
-	pm_runtime_enable(&pdev->dev);
-
 	return 0;
 }
 
-static void tegra210_sfc_platform_remove(struct platform_device *pdev)
-{
-	pm_runtime_disable(&pdev->dev);
-}
-
 static const struct dev_pm_ops tegra210_sfc_pm_ops = {
 	RUNTIME_PM_OPS(tegra210_sfc_runtime_suspend,
 		       tegra210_sfc_runtime_resume, NULL)
@@ -3634,7 +3631,6 @@ static struct platform_driver tegra210_sfc_driver = {
 		.pm = pm_ptr(&tegra210_sfc_pm_ops),
 	},
 	.probe = tegra210_sfc_platform_probe,
-	.remove = tegra210_sfc_platform_remove,
 };
 module_platform_driver(tegra210_sfc_driver)
 
-- 
2.43.0


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

* Re: [PATCH 01/11] ASoC: tegra: asrc: Use devm_pm_runtime_enable()
  2026-12-04 11:22 ` [PATCH 01/11] ASoC: tegra: asrc: " phucduc.bui
@ 2026-12-04 12:28   ` Thierry Reding
  2026-12-05  9:17     ` Bui Duc Phuc
  0 siblings, 1 reply; 15+ messages in thread
From: Thierry Reding @ 2026-12-04 12:28 UTC (permalink / raw)
  To: phucduc.bui
  Cc: Mark Brown, Jonathan Hunter, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Sheetal, Kuninori Morimoto, Takashi Sakamoto,
	Kees Cook, u.kleine-koenig, Danilo Krummrich, Rosen Penev,
	Piyush Patle, Chen Ni, HyeongJun An, Anupama Kunkulagunta,
	Peter Ujfalusi, Bjorn Helgaas, linux-tegra, linux-sound,
	linux-kernel

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

On Fri, Dec 04, 2026 at 06:22:10PM +0700, phucduc.bui@gmail.com wrote:
> From: bui duc phuc <phucduc.bui@gmail.com>
> 
> Replace pm_runtime_enable() with devm_pm_runtime_enable()
> and remove the redundant remove callback.
> 
> Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> ---
>  sound/soc/tegra/tegra186_asrc.c | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
> 
> diff --git a/sound/soc/tegra/tegra186_asrc.c b/sound/soc/tegra/tegra186_asrc.c
> index 07ad7b3b8604..a86db35cf920 100644
> --- a/sound/soc/tegra/tegra186_asrc.c
> +++ b/sound/soc/tegra/tegra186_asrc.c
> @@ -1182,6 +1182,10 @@ static int tegra186_asrc_platform_probe(struct platform_device *pdev)
>  
>  	mutex_init(&asrc->ratio_lock);
>  
> +	err = devm_pm_runtime_enable(dev);
> +	if (err)
> +		return err;
> +
>  	err = devm_snd_soc_register_component(dev, &tegra186_asrc_cmpnt,
>  					      tegra186_asrc_dais,
>  					      ARRAY_SIZE(tegra186_asrc_dais));
> @@ -1189,16 +1193,9 @@ static int tegra186_asrc_platform_probe(struct platform_device *pdev)
>  		return dev_err_probe(dev, err,
>  				     "can't register ASRC component\n");
>  
> -	pm_runtime_enable(dev);
> -
>  	return 0;
>  }

Is there a specific reason why devm_pm_runtime_enable() was moved before
the devm_snd_soc_register_component(). It doesn't sound like it makes
much of a difference, and it may actually be better this way because it
avoids registering the component and having to unregister it if
devm_pm_runtime_enable() failed, but it'd be better to document that
change.

Other than that, this series honestly could've been a single patch. None
of the above are really worth a new revision, though.

Thierry

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

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

* Re: [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable()
  2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
                   ` (10 preceding siblings ...)
  2026-12-04 11:22 ` [PATCH 11/11] ASoC: tegra: tegra210_sfc: " phucduc.bui
@ 2026-12-04 12:29 ` Thierry Reding
  11 siblings, 0 replies; 15+ messages in thread
From: Thierry Reding @ 2026-12-04 12:29 UTC (permalink / raw)
  To: phucduc.bui
  Cc: Mark Brown, Jonathan Hunter, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Sheetal, Kuninori Morimoto, Takashi Sakamoto,
	Kees Cook, u.kleine-koenig, Danilo Krummrich, Rosen Penev,
	Piyush Patle, Chen Ni, HyeongJun An, Anupama Kunkulagunta,
	Peter Ujfalusi, Bjorn Helgaas, linux-tegra, linux-sound,
	linux-kernel

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

On Fri, Dec 04, 2026 at 06:22:09PM +0700, phucduc.bui@gmail.com wrote:
> From: bui duc phuc <phucduc.bui@gmail.com>
> 
> Hi all,
> 
> Use devm_pm_runtime_enable() in the Tegra drivers and drop
> the corresponding remove callbacks.
> 
> Compile-tested only.
> 
> Best regards,
> Phuc
> 
> bui duc phuc (11):
>   ASoC: tegra: asrc: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra186_dspk: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_adx: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_ahub: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_amx: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_dmic: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_i2s: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_mixer: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_mvc: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_ope: Use devm_pm_runtime_enable()
>   ASoC: tegra: tegra210_sfc: Use devm_pm_runtime_enable()
> 
>  sound/soc/tegra/tegra186_asrc.c  | 12 ++++--------
>  sound/soc/tegra/tegra186_dspk.c  | 12 ++++--------
>  sound/soc/tegra/tegra210_adx.c   | 12 ++++--------
>  sound/soc/tegra/tegra210_ahub.c  | 16 +++++-----------
>  sound/soc/tegra/tegra210_amx.c   | 12 ++++--------
>  sound/soc/tegra/tegra210_dmic.c  | 12 ++++--------
>  sound/soc/tegra/tegra210_i2s.c   | 12 ++++--------
>  sound/soc/tegra/tegra210_mixer.c | 12 ++++--------
>  sound/soc/tegra/tegra210_mvc.c   | 12 ++++--------
>  sound/soc/tegra/tegra210_ope.c   | 12 ++++--------
>  sound/soc/tegra/tegra210_sfc.c   | 12 ++++--------
>  11 files changed, 45 insertions(+), 91 deletions(-)

Reviewed-by: Thierry Reding <treding@nvidia.com>

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

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

* Re: [PATCH 01/11] ASoC: tegra: asrc: Use devm_pm_runtime_enable()
  2026-12-04 12:28   ` Thierry Reding
@ 2026-12-05  9:17     ` Bui Duc Phuc
  0 siblings, 0 replies; 15+ messages in thread
From: Bui Duc Phuc @ 2026-12-05  9:17 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Mark Brown, Jonathan Hunter, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Sheetal, Kuninori Morimoto, Takashi Sakamoto,
	Kees Cook, u.kleine-koenig, Danilo Krummrich, Rosen Penev,
	Piyush Patle, Chen Ni, HyeongJun An, Anupama Kunkulagunta,
	Peter Ujfalusi, Bjorn Helgaas, linux-tegra, linux-sound,
	linux-kernel

Hi Thierry,

Thank you for your review.

>
> Is there a specific reason why devm_pm_runtime_enable() was moved before
> the devm_snd_soc_register_component(). It doesn't sound like it makes
> much of a difference, and it may actually be better this way because it
> avoids registering the component and having to unregister it if
> devm_pm_runtime_enable() failed, but it'd be better to document that
> change.
>

Yes, it was intentional, sorry for not documenting it.
The ordering varies between drivers, but enabling runtime PM before
registering the component is the pattern I've seen most commonly, and as
you pointed out, it also avoids registering the component only to
unregister it again if devm_pm_runtime_enable() fails.

> Other than that, this series honestly could've been a single patch. None
> of the above are really worth a new revision, though.
>

Noted on the single patch, thanks!

Best regards,
Phuc

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

end of thread, other threads:[~2026-12-05  9:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 11:22 [PATCH 00/11] ASoC: tegra: Use devm_pm_runtime_enable() phucduc.bui
2026-12-04 11:22 ` [PATCH 01/11] ASoC: tegra: asrc: " phucduc.bui
2026-12-04 12:28   ` Thierry Reding
2026-12-05  9:17     ` Bui Duc Phuc
2026-12-04 11:22 ` [PATCH 02/11] ASoC: tegra: tegra186_dspk: " phucduc.bui
2026-12-04 11:22 ` [PATCH 03/11] ASoC: tegra: tegra210_adx: " phucduc.bui
2026-12-04 11:22 ` [PATCH 04/11] ASoC: tegra: tegra210_ahub: " phucduc.bui
2026-12-04 11:22 ` [PATCH 05/11] ASoC: tegra: tegra210_amx: " phucduc.bui
2026-12-04 11:22 ` [PATCH 06/11] ASoC: tegra: tegra210_dmic: " phucduc.bui
2026-12-04 11:22 ` [PATCH 07/11] ASoC: tegra: tegra210_i2s: " phucduc.bui
2026-12-04 11:22 ` [PATCH 08/11] ASoC: tegra: tegra210_mixer: " phucduc.bui
2026-12-04 11:22 ` [PATCH 09/11] ASoC: tegra: tegra210_mvc: " phucduc.bui
2026-12-04 11:22 ` [PATCH 10/11] ASoC: tegra: tegra210_ope: " phucduc.bui
2026-12-04 11:22 ` [PATCH 11/11] ASoC: tegra: tegra210_sfc: " phucduc.bui
2026-12-04 12:29 ` [PATCH 00/11] ASoC: tegra: " Thierry Reding

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.