Repository navigation
arm64: dts: apple: t8122-j615: enable WLAN wake - #2581
Conversation
The BCM4388 in the 15-inch M3 MacBook Air has no separate host-wake line, like the M2 laptops' BCM4387: its firmware wakes the host with the endpoint's MSI. Mark the WLAN node as a wakeup source so brcmfmac arms that MSI for Wake-on-WLAN and keeps the function in D0 across s2idle. Without it a magic packet does not end s2idle on a J615, although the packet reaches the interface and WoWLAN is enabled. Signed-off-by: Ryan Murray <[email protected]>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Approving and merging.
wakeup-source on &wifi0 (t8122-j615.dts:33) is the property brcmfmac checks before arming the endpoint MSI as a wake IRQ. It's the same shape as the M2 Airs' 11a9281: the BCM4388 has no separate host-wake line either. Your before/after is convincing: before, the RTC alarm woke the machine 90 s late; after, the magic packet woke it 31 s in, on brcmf_pcie_intr. The s2idle drain stays within this machine's normal range. The property only matters once WoWLAN is configured, so the default suspend path is unchanged.
Limiting this to the J615, the board you measured, is right. J613 can follow with its own row.
CI on 2157cf5: Device tree checks and Host tests are green. The commit is signed off.
Problem
On the 15-inch M3 MacBook Air (J615), Wake-on-WLAN does not wake the system from suspend-to-idle. WoWLAN magic-packet wake is enabled and the packet reaches the interface, but brcmfmac only arms the endpoint's MSI as a wake interrupt when the WLAN node is a wakeup source, and the J615's node is not.
Change
Mark the J615's WLAN node
wakeup-source. The BCM4388 has no separate host-wake line, like the BCM4387 in the M2 Airs, which got the same property in 11a9281. Only the J615 changes, the board this was tested on.Testing
On a J615, lab 7.3.0 kernel, PMU RTC alarm as the fallback wake (#2562):
brcmf_pcie_intr).make CHECK_DTBS=y apple/t8122-j615.dtb: no warnings.Still to run
Assisted-by: LLM (Claude:Opus 5.5)