From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Julio Cesar Martinez Cibrian <cesarcibrian.ai@gmail.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Lee Jones <lee@kernel.org>,
mfd@lists.linux.dev,
Heikki Krogerus <heikki.krogerus@linux.intel.com>,
linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org,
linux-kernel@vger.kernel.org, Danilo Krummrich <dakr@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Johan Hovold <johan@kernel.org>
Subject: Re: [PATCH] mfd: core: Remove software node after unregistering platform device
Date: Fri, 4 Dec 2026 14:34:11 -0800 [thread overview]
Message-ID: <axM_hLzQYrKp9OtS@google.com> (raw)
In-Reply-To: <CABvj1E2Qu-LY+kFKtDa1+fE04xgQn1cPJqNpyiAeNPN5P6GQgw@mail.gmail.com>
Hi Cesar,
On Fri, Dec 04, 2026 at 02:29:14PM -0800, Julio Cesar Martinez Cibrian wrote:
> Hi Andy, Dmitry,
>
> Thanks for the guidance. I applied Dmitry's series and tested the
> plain removal reorder in mfd_remove_devices_fn() (without the v1
> shared_fwnode workaround) on top of it on my Intel LPSS /
> i2c-designware system: 10 intel-lpss + 3 i2c_designware unbind/bind
> cycles, plus the platform-device-swnode, property-entry and
> software-node-links KUnit tests. Everything passes cleanly, with no
> sysfs duplicate-filename warnings and no -EBUSY on rebind.
>
> Dmitry, feel free to add to your series:
>
> Tested-by: Cesar Cibrian <cesarcibrian.ai@gmail.com>
>
> Moving device_remove_software_node() after platform_device_unregister()
> strictly depends on Dmitry's patch 1/3: without it, a shared ACPI
> primary node is left with a dangling fn->secondary, leading to a
> use-after-free on rebind. So the two must not be applied out of order.
>
> How would you prefer to handle it? Dmitry, would you like to carry it
> as 4/4 in your v2? Otherwise I can send it separately with the hard
> dependency stated in the commit message. Lee, do you have a preference
> from the MFD side?
I think it really depends if driver core folks are OK with the series
and how Lee wants to handle this as it would become a cross-subsystem
series then.
Thanks.
--
Dmitry
prev parent reply other threads:[~2026-12-04 22:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 18:16 [PATCH] mfd: core: Remove software node after unregistering platform device Cesar Cibrian
2026-12-04 19:47 ` Andy Shevchenko
2026-12-04 20:12 ` Dmitry Torokhov
2026-12-04 20:21 ` Andy Shevchenko
2026-12-04 20:27 ` Dmitry Torokhov
2026-12-04 22:29 ` Julio Cesar Martinez Cibrian
2026-12-04 22:34 ` Dmitry Torokhov [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=axM_hLzQYrKp9OtS@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=brgl@kernel.org \
--cc=cesarcibrian.ai@gmail.com \
--cc=dakr@kernel.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=johan@kernel.org \
--cc=lee@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfd@lists.linux.dev \
/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