Commit e72acfa
committed
power: supply: macsmc: Add M3 generation power events
The Apple M3 machines, and potentially M1/M2 machines with
updated SMC firmware generate a new set of SMC events
starting with 0x7113 when cables are plugged or unplugged.
Without this patch, the kernel logs "Unknown charger event" errors,
and the power status may not update immediately.
The event structure is 0x7113[Port][Status].
Observed on M3 Pro:
- Port 0 (USB-C): 0x711300xx
- Port 1 (USB-C): 0x711301xx
- Port 2 (MagSafe): 0x711302xx
- Disconnect: 0x7113ffxx
Status 0x04 indicates a stable connection, while 0x02/0x03 appear
during negotiation.
This patch handles these events and triggers a power_supply_changed
notification.
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>1 parent 7734019 commit e72acfa
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
819 | 834 | | |
820 | 835 | | |
821 | 836 | | |
| |||
0 commit comments