Re: [PATCH 5/8] input: macsmc-hid: New driver to handle the Apple Mac SMC buttons/lid
From: Lee Jones
Date: Tue Aug 19 2025 - 08:39:44 EST
On Tue, 19 Aug 2025, James Calligeros wrote:
> From: Hector Martin <marcan@xxxxxxxxx>
>
> This driver implements power button and lid switch support for Apple Mac
> devices using SMC controllers driven by the macsmc driver.
>
> In addition to basic input support, this also responds to the final
> shutdown warning (when the power button is held down long enough) by
> doing an emergency kernel poweroff. This allows the NVMe controller to
> be cleanly shut down, which prevents data loss for in-cache data.
>
> Signed-off-by: Hector Martin <marcan@xxxxxxxxx>
> Co-developed-by: Sven Peter <sven@xxxxxxxxxx>
> Signed-off-by: Sven Peter <sven@xxxxxxxxxx>
> Signed-off-by: James Calligeros <jcalligeros99@xxxxxxxxx>
> ---
> MAINTAINERS | 1 +
> drivers/input/misc/Kconfig | 11 ++
> drivers/input/misc/Makefile | 1 +
> drivers/input/misc/macsmc-hid.c | 210 +++++++++++++++++++++++++
> drivers/mfd/macsmc.c | 1 +
Separate patch please.
> 5 files changed, 224 insertions(+)
--
Lee Jones [李琼斯]