From: Sven Peter <sven@kernel.org>
To: Lee Jones <lee@kernel.org>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>,
Linus Walleij <linus.walleij@linaro.org>,
Sebastian Reichel <sre@kernel.org>, Janne Grunau <j@jannau.net>,
Alyssa Rosenzweig <alyssa@rosenzweig.io>,
Neal Gompa <neal@gompa.dev>, Hector Martin <marcan@marcan.st>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Marc Zyngier <maz@kernel.org>,
"Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>,
asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH v7 05/10] mfd: Add Apple Silicon System Management Controller
Date: Sat, 19 Jul 2025 14:57:39 +0200 [thread overview]
Message-ID: <a67fcfc9-e708-47db-8605-e20a8b54b0d1@kernel.org> (raw)
In-Reply-To: <20250624155340.GL795775@google.com>
On 24.06.25 17:53, Lee Jones wrote:
> On Sat, 21 Jun 2025, Sven Peter wrote:
>
>> On 19.06.25 13:49, Lee Jones wrote:
>>> On Tue, 10 Jun 2025, Sven Peter wrote:
>>>
>>>> The System Management Controller (SMC) on Apple Silicon machines is a
>>>> piece of hardware that exposes various functionalities such as
>>>> temperature sensors, voltage/power meters, shutdown/reboot handling,
>>>> GPIOs and more.
>>>>
>>>> Communication happens via a shared mailbox using the RTKit protocol
>>>> which is also used for other co-processors. The SMC protocol then allows
>>>> reading and writing many different keys which implement the various
>>>> features. The MFD core device handles this protocol and exposes it
>>>> to the sub-devices.
>>>>
>>>> Some of the sub-devices are potentially also useful on pre-M1 Apple
>>>> machines and support for SMCs on these machines can be added at a later
>>>> time.
>>>>
>>>> Co-developed-by: Hector Martin <marcan@marcan.st>
>>>> Signed-off-by: Hector Martin <marcan@marcan.st>
>>>> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
>>>> Reviewed-by: Neal Gompa <neal@gompa.dev>
>>>> Signed-off-by: Sven Peter <sven@kernel.org>
>>>> ---
>>>> MAINTAINERS | 2 +
>>>> drivers/mfd/Kconfig | 18 ++
>>>> drivers/mfd/Makefile | 1 +
>>>> drivers/mfd/macsmc.c | 498 +++++++++++++++++++++++++++++++++++++++++++++
>>>> include/linux/mfd/macsmc.h | 279 +++++++++++++++++++++++++
>>>> 5 files changed, 798 insertions(+)
>>>
>>> This is ready. Let me know when you have all of the other driver/* Acks.
>>>
>>
>> They've all been reviewed by the respective maintainers.
>>
>> I assume you want to take this all through the mfd tree and we'll need acks
>> from Sebastian for power/reset and either Linus or Bartosz for gpio then.
>
> That's right.
Can you maybe comment on
https://lore.kernel.org/asahi/20250610-smc-6-15-v7-0-556cafd771d3@kernel.org/T/#m25fe0bd8fe5fa47ed63f4238da80d7186a65450c?
A sub device declared with
MFD_CELL_OF("macsmc-reboot", NULL, NULL, 0, 0, "apple,smc-reboot")
is picked up even if there's no corresponding node in the device tree.
Is this expected behavior for mfd? There are some pre-M1 iDevices that
also have a variant of SMC that doesn't have the reboot functionality.
We can always special case it with a different compatible but just
dropping the sub-node from the device tree would've been neat.
>
>> The one line change inside drivers/soc/apple would usually go through my
>> tree and I'm fine with taking that through mfd instead.
>
> If there are no build-time dependencies on it, you can take it.
Okay, I've picked it up now.
>
> I'm happy to take only the inter-dep ones or all (except the arch/ ones).
>
Sure, I'll take those as well once the dt-bindings are in.
Thanks,
Sven
next prev parent reply other threads:[~2025-07-19 12:57 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 15:29 [PATCH v7 00/10] Apple Mac System Management Controller Sven Peter
2025-06-10 15:29 ` [PATCH v7 01/10] dt-bindings: gpio: Add Apple Mac SMC GPIO block Sven Peter
2025-06-10 15:29 ` [PATCH v7 02/10] dt-bindings: power: reboot: Add Apple Mac SMC Reboot Controller Sven Peter
2025-06-10 15:29 ` [PATCH v7 03/10] dt-bindings: mfd: Add Apple Mac System Management Controller Sven Peter
2025-06-10 15:29 ` [PATCH v7 04/10] soc: apple: rtkit: Make shmem_destroy optional Sven Peter
2025-06-10 15:29 ` [PATCH v7 05/10] mfd: Add Apple Silicon System Management Controller Sven Peter
2025-06-19 11:49 ` Lee Jones
2025-06-21 15:51 ` Sven Peter
2025-06-22 0:50 ` Sebastian Reichel
2025-06-24 15:53 ` Lee Jones
2025-07-19 12:57 ` Sven Peter [this message]
2025-06-10 15:29 ` [PATCH v7 06/10] gpio: Add new gpio-macsmc driver for Apple Macs Sven Peter
2025-07-19 12:59 ` Sven Peter
2025-07-19 15:41 ` Linus Walleij
2025-07-19 15:52 ` Bartosz Golaszewski
2025-07-20 12:11 ` Sven Peter
2025-06-10 15:29 ` [PATCH v7 07/10] power: reset: macsmc-reboot: Add driver for rebooting via Apple SMC Sven Peter
2025-06-16 4:13 ` Nick Chan
2025-06-21 15:47 ` Sven Peter
2025-07-23 8:06 ` Lee Jones
2025-07-23 8:09 ` Lee Jones
2025-07-24 6:08 ` Sven Peter
2025-06-10 15:29 ` [PATCH v7 08/10] arm64: dts: apple: t8103: Add SMC node Sven Peter
2025-06-10 15:29 ` [PATCH v7 09/10] arm64: dts: apple: t8112: " Sven Peter
2025-06-10 15:29 ` [PATCH v7 10/10] arm64: dts: apple: t600x: " Sven Peter
2025-07-19 12:54 ` (subset) [PATCH v7 00/10] Apple Mac System Management Controller Sven Peter
2025-07-24 8:48 ` Lee Jones
2025-07-24 10:25 ` [GIT PULL] Immutable branch between MFD, GPIO, Power and SoC due for the v6.17 merge window Lee Jones
2025-08-10 18:25 ` (subset) [PATCH v7 00/10] Apple Mac System Management Controller Sven Peter
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=a67fcfc9-e708-47db-8605-e20a8b54b0d1@kernel.org \
--to=sven@kernel.org \
--cc=alyssa@rosenzweig.io \
--cc=asahi@lists.linux.dev \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=j@jannau.net \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marcan@marcan.st \
--cc=maz@kernel.org \
--cc=neal@gompa.dev \
--cc=rmk+kernel@armlinux.org.uk \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).