From: Lee Jones <lee@kernel.org>
To: "Otto Pflüger" <otto.pflueger@abscue.de>
Cc: Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Chunyan Zhang <zhang.lyra@gmail.com>,
Mark Brown <broonie@kernel.org>,
Sebastian Reichel <sre@kernel.org>, Rob Herring <robh@kernel.org>,
linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
linux-pm@vger.kernel.org
Subject: Re: [PATCH v2 1/3] mfd: sprd-sc27xx: Integrate power off and reboot support
Date: Thu, 8 Jan 2026 10:15:20 +0000 [thread overview]
Message-ID: <20260108101520.GA302752@google.com> (raw)
In-Reply-To: <20251126153619.GH3070764@google.com>
On Wed, 26 Nov 2025, Lee Jones wrote:
> On Sun, 23 Nov 2025, Otto Pflüger wrote:
>
> > On Thu, Nov 20, 2025 at 03:30:24PM +0000, Lee Jones wrote:
> > > On Mon, 10 Nov 2025, Otto Pflüger wrote:
> > >
> > > > The SC27xx PMICs allow restarting and powering off the device. Since
> > > > this functionality is rather simple and not configurable in any way,
> > > > make it part of the main PMIC driver.
> > >
> > > This sounds like more of a drivers/power thing.
> >
> > This was originally in drivers/power, but according to [1], it should
> > not be a separate device tree node. Using a separate driver without a
> > separate device tree node would still involve some code here that
> > instantiates a platform device and selects the right platform data for
> > it.
> >
> > Registering the poweroff handler directly seemed less complex, and I
> > assumed it was okay since some other MFD drivers (e.g. rk8xx) also
> > implement the same functionality without a separate power driver.
> >
> > Is it a good idea to use devm_mfd_add_devices here instead?
> >
> > [1]: https://lore.kernel.org/all/20251002025344.GA2958334-robh@kernel.org/
>
> Well that is quite the predicament.
>
> Let me catch-up with Rob out-of-band and see if we can come up with a
> solution.
The discussion between Rob and I led to an "agree to disagree" moment.
I still think that a node to describe this device is the correct
approach, however without Rob's blessing, you're a bit stuck.
I think your best bet at this point is to remove the
devm_of_platform_populate() and replace it with mfd_add_devices().
--
Lee Jones [李琼斯]
next prev parent reply other threads:[~2026-01-08 10:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-10 19:08 [PATCH v2 0/3] mfd: sprd-sc27xx: Move poweroff/reboot support to the parent MFD driver Otto Pflüger
2025-11-10 19:08 ` [PATCH v2 1/3] mfd: sprd-sc27xx: Integrate power off and reboot support Otto Pflüger
2025-11-20 15:30 ` Lee Jones
2025-11-23 17:34 ` Otto Pflüger
2025-11-26 15:36 ` Lee Jones
2026-01-08 10:15 ` Lee Jones [this message]
2025-11-10 19:08 ` [PATCH v2 2/3] spi: sprd-adi: Remove code for storing the reboot mode Otto Pflüger
2025-11-10 19:09 ` [PATCH v2 3/3] power: reset: sc27xx: Drop unused driver Otto Pflüger
2025-11-19 6:33 ` [PATCH v2 0/3] mfd: sprd-sc27xx: Move poweroff/reboot support to the parent MFD driver Baolin Wang
2025-11-21 2:29 ` Cixi Geng
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=20260108101520.GA302752@google.com \
--to=lee@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=orsonzhai@gmail.com \
--cc=otto.pflueger@abscue.de \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
--cc=zhang.lyra@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.