From: Cixi Geng <cixi.geng@linux.dev>
To: "Baolin Wang" <baolin.wang@linux.alibaba.com>,
"Otto Pflüger" <otto.pflueger@abscue.de>,
"Lee Jones" <lee@kernel.org>, "Orson Zhai" <orsonzhai@gmail.com>,
"Chunyan Zhang" <zhang.lyra@gmail.com>,
"Mark Brown" <broonie@kernel.org>,
"Sebastian Reichel" <sre@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
linux-pm@vger.kernel.org,
Sebastian Reichel <sebastian.reichel@collabora.com>
Subject: Re: [PATCH v2 0/3] mfd: sprd-sc27xx: Move poweroff/reboot support to the parent MFD driver
Date: Fri, 21 Nov 2025 10:29:59 +0800 [thread overview]
Message-ID: <4508c3b6-ba93-4219-8fc6-e3005d35a426@linux.dev> (raw)
In-Reply-To: <6286c547-2710-4854-a58f-8f3aa1dfc91e@linux.alibaba.com>
On 19/11/2025 14:33, Baolin Wang wrote:
> CC Cixi.
>
> On 2025/11/11 03:08, Otto Pflüger wrote:
>> Registers for powering off the system are present in all SC27xx-series
>> PMICs, although their locations vary between the specific PMIC models.
>> On systems using these chips, the PMIC can always power off the system
>> and is usually the only chip capable of doing this. Similarly, the PMICs
>> (except for SC2731) contain a reset register that can always be used to
>> restart the system.
>>
>> There is an existing sc27xx-poweroff driver, but it currently only works
>> on SC2731 and is not probed anywhere since it is missing an OF match
>> table and is not instantiated by the MFD driver. Reboot for SC2731 is
>> implemented in drivers/spi/spi-sprd-adi.c, which is not really an
>> appropriate location for PMIC-specific code.
>>
>> Since a separate device tree node for the poweroff support would not
>> provide anything useful (see [1]) and passing platform-specific data
>> between drivers is unnecessarily complex for such a simple feature,
>> reimplement the poweroff functionality in the main MFD driver. While at
>> it, add support for the newer SC2730 PMIC and its hardware reset
>> register.
>>
>> Reboot is special because it requires storing the reboot mode. Move the
>> existing code for this from the SPI bus driver to the MFD driver.
>>
>> [1]:
>> https://lore.kernel.org/all/20251002025344.GA2958334-robh@kernel.org/
>>
>> Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
>> ---
>
> Overall, it looks reasonable to me, but I cannot test your patchset
> right now due to the lack of hardware. Cixi (who is from Unisoc),
> could you help test this patchset? Thanks.
the patchset test reboot function on ums512 is ok.
Tested-by: Cixi Geng <cixi.geng@linux.dev>
prev parent reply other threads:[~2025-11-21 2:30 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
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 [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=4508c3b6-ba93-4219-8fc6-e3005d35a426@linux.dev \
--to=cixi.geng@linux.dev \
--cc=baolin.wang@linux.alibaba.com \
--cc=broonie@kernel.org \
--cc=lee@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=sebastian.reichel@collabora.com \
--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.