From: Thierry Reding <thierry.reding@kernel.org>
To: phucduc.bui@gmail.com
Cc: Mark Brown <broonie@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Sheetal <sheetal@nvidia.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Takashi Sakamoto <o-takashi@sakamocchi.jp>,
Kees Cook <kees+treewide@kernel.org>,
u.kleine-koenig@baylibre.com, Danilo Krummrich <dakr@kernel.org>,
Rosen Penev <rosenp@gmail.com>,
Piyush Patle <piyushpatle228@gmail.com>,
Chen Ni <nichen@iscas.ac.cn>,
HyeongJun An <sammiee5311@gmail.com>,
Anupama Kunkulagunta <akunkulagunt@nvidia.com>,
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>,
Bjorn Helgaas <bhelgaas@google.com>,
linux-tegra@vger.kernel.org, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 01/11] ASoC: tegra: asrc: Use devm_pm_runtime_enable()
Date: Fri, 4 Dec 2026 13:28:22 +0100 [thread overview]
Message-ID: <axKwzFUq_OFmx7L8@orome> (raw)
In-Reply-To: <20261204112220.63695-2-phucduc.bui@gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2026-12-04 12:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=axKwzFUq_OFmx7L8@orome \
--to=thierry.reding@kernel.org \
--cc=akunkulagunt@nvidia.com \
--cc=bhelgaas@google.com \
--cc=broonie@kernel.org \
--cc=dakr@kernel.org \
--cc=jonathanh@nvidia.com \
--cc=kees+treewide@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=nichen@iscas.ac.cn \
--cc=o-takashi@sakamocchi.jp \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=phucduc.bui@gmail.com \
--cc=piyushpatle228@gmail.com \
--cc=rosenp@gmail.com \
--cc=sammiee5311@gmail.com \
--cc=sheetal@nvidia.com \
--cc=tiwai@suse.com \
--cc=u.kleine-koenig@baylibre.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 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.