Re: [PATCH v3 1/2] power: supply: Add macsmc-power driver for Apple Silicon
From: Sven Peter
Date: Thu Jan 15 2026 - 16:00:37 EST
Hi,
On 1/15/26 08:08, Michael Reeves via B4 Relay wrote:
From: Michael Reeves <michael.reeves077@xxxxxxxxx>[...]
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@xxxxxxxxx>
Signed-off-by: Hector Martin <marcan@xxxxxxxxx>
Reviewed-by: Neal Gompa <neal@xxxxxxxxx>
Signed-off-by: Michael Reeves <michael.reeves077@xxxxxxxxx>
---
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@xxxxxxxxxx>
Sven