From: Lee Jones <lee@kernel.org>
To: Lee Jones <lee@kernel.org>,
Bastien Curutchet <bastien.curutchet@bootlin.com>
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Miquèl Raynal" <miquel.raynal@bootlin.com>,
"Cheng Ming Lin" <linchengming884@gmail.com>,
"Cheng Ming Lin" <chengminglin@mxic.com.tw>,
linux-kernel@vger.kernel.org
Subject: Re: (subset) [PATCH] mfd: core: Increment of_node's refcount before linking it to the platform device
Date: Wed, 03 Sep 2025 14:24:14 +0100 [thread overview]
Message-ID: <175690585428.2761740.13323923312367543247.b4-ty@kernel.org> (raw)
In-Reply-To: <20250820-mfd-refcount-v1-1-6dcb5eb41756@bootlin.com>
On Wed, 20 Aug 2025 16:21:13 +0200, Bastien Curutchet wrote:
> When an MFD device is added, a platform_device is allocated. If this
> device is linked to a DT description, the corresponding OF node is linked
> to the new platform device but the OF node's refcount isn't incremented.
> As of_node_put() is called during the platform device release, it leads
> to a refcount underflow.
>
> Call of_node_get() to increment the OF node's refcount when the node is
> linked to the newly created platform device.
>
> [...]
Applied, thanks!
[1/1] mfd: core: Increment of_node's refcount before linking it to the platform device
commit: 5fb7a985997b56eb600a0accfb3b54c05687e7ea
--
Lee Jones [李琼斯]
prev parent reply other threads:[~2025-09-03 13:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-20 14:21 Bastien Curutchet
2025-09-02 13:29 ` Lee Jones
2025-09-02 14:42 ` Bastien Curutchet
2025-09-03 13:24 ` Lee Jones [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=175690585428.2761740.13323923312367543247.b4-ty@kernel.org \
--to=lee@kernel.org \
--cc=bastien.curutchet@bootlin.com \
--cc=chengminglin@mxic.com.tw \
--cc=linchengming884@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=thomas.petazzoni@bootlin.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®