From: Frank Li <Frank.li@oss.nxp.com>
To: phucduc.bui@gmail.com
Cc: Ulf Hansson <ulfh@kernel.org>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
rafael.j.wysocki@intel.com, Jacky Bai <ping.bai@nxp.com>,
Lucas Stach <l.stach@pengutronix.de>, Peng Fan <peng.fan@nxp.com>,
Xu Yang <xu.yang_2@nxp.com>,
Benjamin Gaignard <benjamin.gaignard@collabora.com>,
Ming Qian <ming.qian@oss.nxp.com>,
u.kleine-koenig@baylibre.com,
Marco Felsch <m.felsch@pengutronix.de>,
Alexander Stein <alexander.stein@ew.tq-group.com>,
Guoniu Zhou <guoniu.zhou@oss.nxp.com>,
linux-pm@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] pmdomain: imx93-blk-ctrl: Use pm_runtime_resume_and_get()
Date: Mon, 21 Sep 2026 11:18:44 -0500 [thread overview]
Message-ID: <arFY5OxlEL2QnAH0@SMW015318> (raw)
In-Reply-To: <20260921033708.14433-4-phucduc.bui@gmail.com>
On Mon, Sep 21, 2026 at 10:37:08AM +0700, phucduc.bui@gmail.com wrote:
> From: bui duc phuc <phucduc.bui@gmail.com>
>
> Replace the open-coded pm_runtime_get_sync() + pm_runtime_put_noidle()
> error handling pattern with pm_runtime_resume_and_get(), which already
> does this internally.
>
> No functional change.
>
> Found by manual code inspection.
>
> Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> ---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> drivers/pmdomain/imx/imx93-blk-ctrl.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/pmdomain/imx/imx93-blk-ctrl.c b/drivers/pmdomain/imx/imx93-blk-ctrl.c
> index 243ce939ba68..6d4c55a85c64 100644
> --- a/drivers/pmdomain/imx/imx93-blk-ctrl.c
> +++ b/drivers/pmdomain/imx/imx93-blk-ctrl.c
> @@ -152,9 +152,8 @@ static int imx93_blk_ctrl_power_on(struct generic_pm_domain *genpd)
> return ret;
> }
>
> - ret = pm_runtime_get_sync(bc->dev);
> + ret = pm_runtime_resume_and_get(bc->dev);
> if (ret < 0) {
> - pm_runtime_put_noidle(bc->dev);
> dev_err(bc->dev, "failed to power up domain\n");
> goto disable_clk;
> }
> --
> 2.43.0
>
>
prev parent reply other threads:[~2026-09-21 16:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 3:37 [PATCH 0/3] pmdomain: imx: " phucduc.bui
2026-09-21 3:37 ` [PATCH 1/3] pmdomain: imx: gpcv2: " phucduc.bui
2026-09-21 16:16 ` Frank Li
2026-09-21 3:37 ` [PATCH 2/3] pmdomain: imx8m-blk-ctrl: " phucduc.bui
2026-09-21 16:18 ` Frank Li
2026-09-21 3:37 ` [PATCH 3/3] pmdomain: imx93-blk-ctrl: " phucduc.bui
2026-09-21 16:18 ` Frank Li [this message]
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=arFY5OxlEL2QnAH0@SMW015318 \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@nxp.com \
--cc=alexander.stein@ew.tq-group.com \
--cc=benjamin.gaignard@collabora.com \
--cc=festevam@gmail.com \
--cc=guoniu.zhou@oss.nxp.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=ming.qian@oss.nxp.com \
--cc=peng.fan@nxp.com \
--cc=phucduc.bui@gmail.com \
--cc=ping.bai@nxp.com \
--cc=rafael.j.wysocki@intel.com \
--cc=s.hauer@pengutronix.de \
--cc=u.kleine-koenig@baylibre.com \
--cc=ulfh@kernel.org \
--cc=xu.yang_2@nxp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®