[PATCH 5/8] input: macsmc-hid: New driver to handle the Apple Mac SMC buttons/lid
Lee Jones
lee at kernel.org
Tue Aug 19 05:35:05 PDT 2025
On Tue, 19 Aug 2025, James Calligeros wrote:
> From: Hector Martin <marcan at marcan.st>
>
> 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 at marcan.st>
> Co-developed-by: Sven Peter <sven at kernel.org>
> Signed-off-by: Sven Peter <sven at kernel.org>
> Signed-off-by: James Calligeros <jcalligeros99 at gmail.com>
> ---
> 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 [李琼斯]
More information about the linux-arm-kernel
mailing list