From: Frank Li <Frank.li@oss.nxp.com>
To: Yige Jiang <yigejiang86@gmail.com>
Cc: Georgi Djakov <djakov@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>,
linux-pm@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] interconnect: imx: Hold a device reference for main NoC QoS
Date: Tue, 1 Dec 2026 10:25:56 -0600 [thread overview]
Message-ID: <aw71FFXhTWEVqUm0@SMW015318> (raw)
In-Reply-To: <20261201183829.474c6efd48b8.imx-icc@gmail.com>
On Tue, Dec 01, 2026 at 07:22:42PM +0800, Yige Jiang wrote:
> [You don't often get email from yigejiang86@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> imx_icc_node_destroy() drops the device reference held in qos_dev. For
> nodes found by of_find_device_by_node(), the lookup supplies that
> reference. For the main NoC node, imx_icc_node_init_qos() stores the
> provider device without taking a reference. Removing the provider then
> drops a reference belonging to another owner.
>
> Take a reference to the provider device when assigning it to qos_dev so
> that both paths own the reference released at teardown.
Move this after ---, needn't log into commit message.
Frank
>
> Tool use: Codex helped prepare the commit message and check the diff
> against the interconnect tree.
>
> Fixes: f0d8048525d7 ("interconnect: Add imx core driver")
> Signed-off-by: Yige Jiang <yigejiang86@gmail.com>
> ---
> drivers/interconnect/imx/imx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c
> index 9511f80cf041..f930a947a622 100644
> --- a/drivers/interconnect/imx/imx.c
> +++ b/drivers/interconnect/imx/imx.c
> @@ -124,7 +124,7 @@ static int imx_icc_node_init_qos(struct icc_provider *provider,
> struct platform_device *pdev;
>
> if (adj->main_noc) {
> - node_data->qos_dev = dev;
> + node_data->qos_dev = get_device(dev);
> dev_dbg(dev, "icc node %s[%d] is main noc itself\n",
> node->name, node->id);
> } else {
>
next prev parent reply other threads:[~2026-12-01 16:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 11:22 [PATCH] interconnect: imx: Hold a device reference for main NoC QoS Yige Jiang
2026-12-01 16:25 ` Frank Li [this message]
2026-12-01 17:08 ` Yige Jiang
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=aw71FFXhTWEVqUm0@SMW015318 \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@nxp.com \
--cc=djakov@kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=stable@vger.kernel.org \
--cc=yigejiang86@gmail.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.