[PATCH] interconnect: imx: Hold a device reference for main NoC QoS

Yige Jiang yigejiang86 at gmail.com
Tue Dec 1 09:08:27 PST 2026


Will send v2, thanks for pointing this out.

Yige

> On Dec 2, 2026, at 12:25 AM, Frank Li <Frank.li at oss.nxp.com> wrote:
> 
> On Tue, Dec 01, 2026 at 07:22:42PM +0800, Yige Jiang wrote:
>> [You don't often get email from yigejiang86 at 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 at 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 {
>> 




More information about the linux-arm-kernel mailing list