<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/mfd/macsmc.c, branch v7.0.10</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v7.0.10</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v7.0.10'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-01-22T14:23:20+00:00</updated>
<entry>
<title>mfd: macsmc: Initialize mutex</title>
<updated>2026-01-22T14:23:20+00:00</updated>
<author>
<name>Janne Grunau</name>
<email>j@jannau.net</email>
</author>
<published>2025-12-31T09:42:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=414f65d6736342c77d4ec5e7373039f4a09250dd'/>
<id>urn:sha1:414f65d6736342c77d4ec5e7373039f4a09250dd</id>
<content type='text'>
Initialize struct apple_smc's mutex in apple_smc_probe(). Using the
mutex uninitialized surprisingly resulted only in occasional NULL
pointer dereferences in apple_smc_read() calls from the probe()
functions of sub devices.

Cc: stable@vger.kernel.org
Fixes: e038d985c9823 ("mfd: Add Apple Silicon System Management Controller")
Signed-off-by: Janne Grunau &lt;j@jannau.net&gt;
Reviewed-by: Sven Peter &lt;sven@kernel.org&gt;
Reviewed-by: Neal Gompa &lt;neal@gompa.dev&gt;
Link: https://patch.msgid.link/20251231-macsmc-mutex_init-v2-1-5818c9dc9b29@jannau.net
Signed-off-by: Lee Jones &lt;lee@kernel.org&gt;
</content>
</entry>
<entry>
<title>mfd: macsmc: Wire up Apple SMC input subdevice</title>
<updated>2026-01-22T14:22:35+00:00</updated>
<author>
<name>James Calligeros</name>
<email>jcalligeros99@gmail.com</email>
</author>
<published>2025-12-15T09:37:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0ec4122f003ea8b7baca01fae71cfa5ffe0c5663'/>
<id>urn:sha1:0ec4122f003ea8b7baca01fae71cfa5ffe0c5663</id>
<content type='text'>
Add the new SMC input function to the mfd device

Signed-off-by: James Calligeros &lt;jcalligeros99@gmail.com&gt;
Reviewed-by: Neal Gompa &lt;neal@gompa.dev&gt;
Link: https://patch.msgid.link/20251215-macsmc-subdevs-v6-5-0518cb5f28ae@gmail.com
Signed-off-by: Lee Jones &lt;lee@kernel.org&gt;
</content>
</entry>
<entry>
<title>mfd: macsmc: Wire up Apple SMC hwmon subdevice</title>
<updated>2026-01-22T14:22:32+00:00</updated>
<author>
<name>James Calligeros</name>
<email>jcalligeros99@gmail.com</email>
</author>
<published>2025-12-15T09:37:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5dce1c0bff744fd3a3be2fbbfe13e1d264d1d45e'/>
<id>urn:sha1:5dce1c0bff744fd3a3be2fbbfe13e1d264d1d45e</id>
<content type='text'>
Add the SMC hwmon functionality to the mfd device

Signed-off-by: James Calligeros &lt;jcalligeros99@gmail.com&gt;
Reviewed-by: Neal Gompa &lt;neal@gompa.dev&gt;
Link: https://patch.msgid.link/20251215-macsmc-subdevs-v6-3-0518cb5f28ae@gmail.com
Signed-off-by: Lee Jones &lt;lee@kernel.org&gt;
</content>
</entry>
<entry>
<title>mfd: macsmc: Wire up Apple SMC RTC subdevice</title>
<updated>2026-01-22T14:22:29+00:00</updated>
<author>
<name>James Calligeros</name>
<email>jcalligeros99@gmail.com</email>
</author>
<published>2025-12-15T09:37:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=899c590a257269fa9e5d4fd69134496defe1851c'/>
<id>urn:sha1:899c590a257269fa9e5d4fd69134496defe1851c</id>
<content type='text'>
Add the new SMC RTC function to the mfd device

Signed-off-by: James Calligeros &lt;jcalligeros99@gmail.com&gt;
Reviewed-by: Neal Gompa &lt;neal@gompa.dev&gt;
Link: https://patch.msgid.link/20251215-macsmc-subdevs-v6-2-0518cb5f28ae@gmail.com
Signed-off-by: Lee Jones &lt;lee@kernel.org&gt;
</content>
</entry>
<entry>
<title>mfd: macsmc: Make SMC write buffers const</title>
<updated>2025-11-06T14:03:28+00:00</updated>
<author>
<name>Atharva Tiwari</name>
<email>atharvatiwarilinuxdev@gmail.com</email>
</author>
<published>2025-10-07T13:05:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d306cbbc34cc9aa6ed2235472110fe797f887db7'/>
<id>urn:sha1:d306cbbc34cc9aa6ed2235472110fe797f887db7</id>
<content type='text'>
Mark the write buffer arguments in apple_smc_write(), apple_smc_rw(),
and apple_smc_write_atomic() as const. These functions do not modify
the data provided by the caller, so the parameters should be const
qualified.

Signed-off-by: Atharva Tiwari &lt;atharvatiwarilinuxdev@gmail.com&gt;
Reviewed-by: Sven Peter &lt;sven@kernel.org&gt;
Signed-off-by: Lee Jones &lt;lee@kernel.org&gt;
</content>
</entry>
<entry>
<title>mfd: macsmc: Add "apple,t8103-smc" compatible</title>
<updated>2025-10-01T09:28:38+00:00</updated>
<author>
<name>Janne Grunau</name>
<email>j@jannau.net</email>
</author>
<published>2025-08-28T14:01:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9b959e525fa7e8518e57554b6e17849942938dfc'/>
<id>urn:sha1:9b959e525fa7e8518e57554b6e17849942938dfc</id>
<content type='text'>
After discussion with the devicetree maintainers we agreed to not extend
lists with the generic compatible "apple,smc" anymore [1]. Use
"apple,t8103-smc" as base compatible as it is the SoC the driver and
bindings were written for.

[1]: https://lore.kernel.org/asahi/12ab93b7-1fc2-4ce0-926e-c8141cfe81bf@kernel.org/

Signed-off-by: Janne Grunau &lt;j@jannau.net&gt;
Link: https://lore.kernel.org/r/20250828-dt-apple-t6020-v1-18-507ba4c4b98e@jannau.net
Signed-off-by: Lee Jones &lt;lee@kernel.org&gt;
</content>
</entry>
<entry>
<title>mfd: macsmc: Remove error prints for devm_add_action_or_reset()</title>
<updated>2025-10-01T09:28:19+00:00</updated>
<author>
<name>Waqar Hameed</name>
<email>waqar.hameed@axis.com</email>
</author>
<published>2025-08-05T09:33:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=99767a0c8bb4e206f6cea37f5162073d1899168c'/>
<id>urn:sha1:99767a0c8bb4e206f6cea37f5162073d1899168c</id>
<content type='text'>
When `devm_add_action_or_reset()` fails, it is due to a failed memory
allocation and will thus return `-ENOMEM`. `dev_err_probe()` doesn't do
anything when error is `-ENOMEM`. Therefore, remove the useless call to
`dev_err_probe()` when `devm_add_action_or_reset()` fails, and just
return the value instead.

Signed-off-by: Waqar Hameed &lt;waqar.hameed@axis.com&gt;
Reviewed-by: Sven Peter &lt;sven@kernel.org&gt;
Link: https://lore.kernel.org/r/pnd8qjym7td.a.out@axis.com
Signed-off-by: Lee Jones &lt;lee@kernel.org&gt;
</content>
</entry>
<entry>
<title>mfd: Add Apple Silicon System Management Controller</title>
<updated>2025-07-24T08:47:33+00:00</updated>
<author>
<name>Sven Peter</name>
<email>sven@kernel.org</email>
</author>
<published>2025-06-10T15:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e038d985c9823a12cd64fa077d0c5aca2c644b67'/>
<id>urn:sha1:e038d985c9823a12cd64fa077d0c5aca2c644b67</id>
<content type='text'>
The System Management Controller (SMC) on Apple Silicon machines is a
piece of hardware that exposes various functionalities such as
temperature sensors, voltage/power meters, shutdown/reboot handling,
GPIOs and more.

Communication happens via a shared mailbox using the RTKit protocol
which is also used for other co-processors. The SMC protocol then allows
reading and writing many different keys which implement the various
features. The MFD core device handles this protocol and exposes it
to the sub-devices.

Some of the sub-devices are potentially also useful on pre-M1 Apple
machines and support for SMCs on these machines can be added at a later
time.

Co-developed-by: Hector Martin &lt;marcan@marcan.st&gt;
Signed-off-by: Hector Martin &lt;marcan@marcan.st&gt;
Reviewed-by: Alyssa Rosenzweig &lt;alyssa@rosenzweig.io&gt;
Reviewed-by: Neal Gompa &lt;neal@gompa.dev&gt;
Signed-off-by: Sven Peter &lt;sven@kernel.org&gt;
Link: https://lore.kernel.org/r/20250610-smc-6-15-v7-5-556cafd771d3@kernel.org
Signed-off-by: Lee Jones &lt;lee@kernel.org&gt;
</content>
</entry>
</feed>
