On Fri, Dec 04, 2026 at 08:12:40AM -0500, Atharva Tiwari wrote:
> applesmc is very old, and all of its code is lumped into one
> driver. Fan control, sensors, the light sensor, the motion
> sensor and the keyboard backlight in a single file
> with its own way of talking to the SMC. It is hard to extend
> and to support new machines.
> 
> This series adds Intel Mac support to the macsmc drivers that
> were written for Apple Silicon (the Asahi implementation).
> The SMC works the same way on both platforms, so we share a
> lot of code with Asahi. Only the way of talking to the SMC
> differs.
> 
> To make that work, patch 1 splits the macsmc driver into a
> common core and a backend. The existing RTKit code moves into
> its own backend. Patch 2 adds an ACPI backend for Intel Macs
> with I/O port, MMIO and interrupt support. After that, each
> function gets its own small driver using the standard kernel
> interfaces (hwmon, IIO, LEDs, power supply, RTC, watchdog),
> instead of one large driver doing everything.
> 
> On Intel Macs these drivers replace applesmc (hwmon, light
> sensor, motion sensor and keyboard backlight) and acpi-sbs
> (battery and adapter). They are mutually exclusive with the
> drivers they replace, so only one is used at a time.
> 
> The series is organised as follows:
> 
>   1      Split macsmc into a core and backends
>   2      ACPI backend for Intel Macs
>   3-6    New drivers: watchdog, IIO light and accelerometer,
>          keyboard backlight LED
>   7-9    RTC support for T2 Macs, a T2 detection flag, and
>          disabling the broken ACPI RTCs
>   10-11  Power supply support, replacing acpi-sbs
>   12-13  hwmon support for Intel Macs
>   14     ioctl for userspace access to SMC keys

This AI slop needs a lot more *human* work. Take your time, polish
the output. This series anyways missed v7.5.

-- 
With Best Regards,
Andy Shevchenko



Reply via email to