From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387304; b=FlvJyNfy1weSi9MZ3EIlxuXGc7YX1/X11QPv6QGkqtshuJNHW+Boif4bSVqFHIqqCmf+ H4hIy70zKn+YnFo6HX3JCZSL4dVuktb/cCXGp15zfQWd66a7mvfm+bzQDRnehXlVk95z6 /7D5Fc6VfG/1qslewtJgUa0ZSGggfgmWZFwgGdUBVwSh/Qo9eCpBL0u+7kMPm1CG1namr Y8j+HZ1AcAdoOsCpKahVZPa8fxe7kwHVxVCJswqMmgsLRfPQUnVBdso4WYTuRaDrMEgXI T6F2ugo6hEuJOS0S5kRAjzOy8XRou8bbjazBg8DONRe/Mr9V7kyzD1uSP6g9zp9/W/A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387304; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=6bmtgQ60pDIzu2Hoc0BoXgsDl1hCWvRj6lTDKwczl8s=; b=CD7yTmnGaLcdlmbNdTULtCPe59tW1RZq5klbhPqHMrWf2GB3PMka9j1EKgMRsDPqEv0l 5l9GSE7W7Ez/piEOy7gLO/eMrQ+8lt/exL91IpcP6ZndahUZmNdctLGgSS8ugAYlArT61 ThU5/ncuBqVSptmUK5eeaZWWUvCdjURGpeyxMeEKj+O7qnnLTMA5HeQ1KqytQvbBqoWz3 zsnwPGP2cmUEkFY7sbKl42qUQBBjD4RHOAoLHRxo4MP0H2xZxjQX0TIBZX6toWI3ZpOb7 4hJJHVkTr8ZgOCDjjF3PizywssY65DHbVltGYgUQWcqYaiol+DzZojRsDmLC7K7QRKQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Tg9t6tLU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5815606A32C; Fri, 4 Dec 2026 12:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Tg9t6tLU Received: by smtp.kernel.org (Postfix) with ESMTPSA id 037C01F000CE; Fri, 4 Dec 2026 12:28:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796387304; bh=6bmtgQ60pDIzu2Hoc0BoXgsDl1hCWvRj6lTDKwczl8s=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Tg9t6tLU5kgpaC9e5xgIatKpQl0RHlToTR/4jtufDxwyEgbWbaOHM3BnZJX6kanKa W9vHq94GeQS7jdazPv3ldEdCYzuGBiPPngJCdtcMzjBF2E88mlBmlE4pWIgfKRGwJL Mp4wfLS1Kk9KFOYx7SZA1cmKb+0viTrlcDKBa938iMdg3lyOWedNVMVzXZRC079DxM yiv4QxpBrZeUmLm08MD9KlSf0d0mQe4sutjPbxfUIk9wdq1hDfiBLF/Wzb1wteZD44 DemBiQXPA6bCKCFN+zYKV9S9j2H267vJQXLjKTDy/O6uvzaDsCNErqv37hjndBjmow jKuylLm7MgzXA== Date: Fri, 4 Dec 2026 13:28:22 +0100 From: Thierry Reding To: phucduc.bui@gmail.com Cc: Mark Brown , Jonathan Hunter , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Sheetal , Kuninori Morimoto , Takashi Sakamoto , Kees Cook , u.kleine-koenig@baylibre.com, Danilo Krummrich , Rosen Penev , Piyush Patle , Chen Ni , HyeongJun An , Anupama Kunkulagunta , Peter Ujfalusi , Bjorn Helgaas , 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() Message-ID: References: <20261204112220.63695-1-phucduc.bui@gmail.com> <20261204112220.63695-2-phucduc.bui@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="az2hyme6ebpewbpx" Content-Disposition: inline In-Reply-To: <20261204112220.63695-2-phucduc.bui@gmail.com> --az2hyme6ebpewbpx Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 01/11] ASoC: tegra: asrc: Use devm_pm_runtime_enable() MIME-Version: 1.0 On Fri, Dec 04, 2026 at 06:22:10PM +0700, phucduc.bui@gmail.com wrote: > From: bui duc phuc >=20 > Replace pm_runtime_enable() with devm_pm_runtime_enable() > and remove the redundant remove callback. >=20 > Signed-off-by: bui duc phuc > --- > sound/soc/tegra/tegra186_asrc.c | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) >=20 > diff --git a/sound/soc/tegra/tegra186_asrc.c b/sound/soc/tegra/tegra186_a= src.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 pla= tform_device *pdev) > =20 > mutex_init(&asrc->ratio_lock); > =20 > + err =3D devm_pm_runtime_enable(dev); > + if (err) > + return err; > + > err =3D 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 pla= tform_device *pdev) > return dev_err_probe(dev, err, > "can't register ASRC component\n"); > =20 > - 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 --az2hyme6ebpewbpx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmsSseMACgkQ3SOs138+ s6FXcA//bA6RT3Ci+1FVZ1bdgQpITZ5EInJIoOyl4Fv7s4NEBKzvC1FjCGA7Ky3o Dp+KFqcOQu6C0ddQrRv78S5vOXrc3vBL29JsSpLPIqrzrTNbNq6jnr+NNP8oj+zw UIdOh2E1jTBMCOl5Vjaq9tD6kDu2iwbUlFd6+KSdMV9nWBmTUu5pr9uuNivjIdVR V4S4tCK2Sa6O+HPxjJ+c/4dX6KPizNp1KTiKVTDC/i1FqNuJvd/9LdEopq2kSCse 34Xh38Zby6UbfncGAQdolYXryC+zfFiC88t17ux20p/+y0S2AG463MTrOl3NmUi+ MseF7Tn39QWEh+du8J1SIIf7hHYP9aphAxmgnWQxcvB9OihMqPlWs3gDRtENelFH 4YQ9T2B9n392cWo+wFpm37RoQvORj3tibdwy2y9BQDxRl6hl2EiFYAk8aOOgz2Fi S5gDB38TXGVQ7jgYoh6vprOEiQ2czBDrSH/4O90zQ8lgHnmwmy3DYyhYu+XXkSVF Ie51ThrqBJ5hCpN9I59iUeY99s1NanmZKVNvfOkDRvKIKQ141x8RZpYc6yWQOt8T FZMtIQ3+EJZoo96GHXvgkTqXUTdbq0iRB2EgYTOBb1TjkNP4SAByaGPw5KOMiqPi KA+ystcOG5EndTNogir8ZprKZybhNoTWnTnbjmFUbyxkCz3ughc= =dAUT -----END PGP SIGNATURE----- --az2hyme6ebpewbpx--