[PATCH v7 07/10] power: reset: macsmc-reboot: Add driver for rebooting via Apple SMC
Nick Chan
towinchenmi at gmail.com
Sun Jun 15 21:13:50 PDT 2025
On 10/6/2025 23:29, Sven Peter wrote:
> From: Hector Martin <marcan at marcan.st>
>
> This driver implements the reboot/shutdown support exposed by the SMC
> on Apple Silicon machines, such as Apple M1 Macs.
>
> Signed-off-by: Hector Martin <marcan at marcan.st>
> Reviewed-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
> Reviewed-by: Neal Gompa <neal at gompa.dev>
> Reviewed-by: Sebastian Reichel <sebastian.reichel at collabora.com>
> Signed-off-by: Sven Peter <sven at kernel.org>
> ---
> MAINTAINERS | 1 +
> drivers/power/reset/Kconfig | 9 ++
> drivers/power/reset/Makefile | 1 +
> drivers/power/reset/macsmc-reboot.c | 290 ++++++++++++++++++++++++++++++++++++
> 4 files changed, 301 insertions(+)
[...]
It seems that the reboot driver still probes even without the smc_reboot node in the smc node:
[ 0.994942] macsmc 236000100.smc: RTKit: Initializing (protocol version 12)
[ 1.002862] macsmc-gpio macsmc-gpio: First GPIO key: gP01 (0x67503031)
[ 1.013156] macsmc-reboot: Failed to locate of_node [id: -1]
[ 1.048188] macsmc-reboot macsmc-reboot: Missing NVMEM cell shutdown_flag (-2)
[ 1.055359] macsmc-reboot macsmc-reboot: Missing NVMEM cell boot_stage (-2)
[ 1.062332] macsmc-reboot macsmc-reboot: Missing NVMEM cell boot_error_count (-2)
[ 1.069799] macsmc-reboot macsmc-reboot: Missing NVMEM cell panic_count (-2)
[ 1.076902] macsmc-reboot macsmc-reboot: Handling reboot and poweroff requests via SMC
Best regards,
Nick Chan
More information about the linux-arm-kernel
mailing list