[PATCH v3 1/2] power: supply: Add macsmc-power driver for Apple Silicon
Sven Peter
sven at kernel.org
Thu Jan 15 13:00:33 PST 2026
Hi,
On 1/15/26 08:08, Michael Reeves via B4 Relay wrote:
> From: Michael Reeves <michael.reeves077 at gmail.com>
>
> This driver provides battery and AC status monitoring for Apple Silicon
> Macs via the SMC (System Management Controller). It supports
> reporting capacity, voltage, current, and charging status.
>
> Co-developed-by: Hector Martin <marcan at marcan.st>
> Signed-off-by: Hector Martin <marcan at marcan.st>
> Reviewed-by: Neal Gompa <neal at gompa.dev>
> Signed-off-by: Michael Reeves <michael.reeves077 at gmail.com>
> ---
> MAINTAINERS | 1 +
> drivers/power/supply/Kconfig | 11 +
> drivers/power/supply/Makefile | 1 +
> drivers/power/supply/macsmc-power.c | 834 ++++++++++++++++++++++++++++++++++++
> 4 files changed, 847 insertions(+)
[...]
> +
> +static int macsmc_power_event(struct notifier_block *nb, unsigned long event, void *data)
> +{
> + struct macsmc_power *power = container_of(nb, struct macsmc_power, nb);
> +
> + /*
> + * SMC Event IDs are reverse-engineered.
Any chance you meant something else here? The event IDs aren't special,
everything here is reverse-engineered ;)
No need to change this imho unless there's another reason for a v4 though:
Reviewed-by: Sven Peter <sven at kernel.org>
Sven
More information about the linux-arm-kernel
mailing list