Repository navigation
wifi: apple: centauri: T6050: don't veto s2idle for a failed or stopped N1 - #2271
RyanTheTide wants to merge 1 commit into
Conversation
…ed N1 centauri_t6050_suspend() returns -EBUSY for every boot phase but READY when the sleep keeps the N1 powered (no firmware sleep). If the N1's automatic startup failed (CEN_BOOT_FAILED, for example a missing or bad firmware file) or the device was stopped (CEN_BOOT_STOPPED), nothing will ever move it to READY. Every s2idle is then refused, a lid close included, until the driver is unbound. Only a boot in flight (ROM, CYCLE, IPC) needs the sleep held off. On this path a ready N1 only gets its config space saved; the device stays powered through the sleep. A failed or stopped N1 has no boot work in flight either, so treat it the same way and let the system sleep. The firmware-sleep path is unchanged. Fixes: f044e18 ("wifi/Bluetooth: apple: centauri T6050: the N1 over a firmware sleep") Reported-by: RINNECODER <[email protected]> Closes: #1380 Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Blockers: 1.
The logic is sound. Of the phases in HW row: J714s or K116s (any T6050) on this head.
Assisted-by: LLM (Claude:Opus 5.5) |
|
Replaced by #2795: the same changes with the commit trailers fixed, on the current integration/aurora. |
Fixes #1380.
On a sleep that keeps the N1 powered (s2idle, no firmware sleep),
centauri_t6050_suspend()returned -EBUSY for every boot phase butCEN_BOOT_READY. If the N1's automatic startup failed (CEN_BOOT_FAILED, for example a missing or bad firmware file) or the device was stopped (CEN_BOOT_STOPPED), nothing ever moves it to READY. Every s2idle and lid close was then refused until the driver was unbound.Change. Only a boot in flight (
CEN_BOOT_ROM,CEN_BOOT_CYCLE,CEN_BOOT_IPC) holds the sleep off. On this path a ready N1 only gets its config space saved, and the device stays powered. A failed or stopped N1 has no boot work in flight either, so it is handled the same way. The firmware-sleep path (apple_centauri_sleep_reboot()) is unchanged.Evidence.
--strict: no code findings (only the no-tree commit-id warning and the trailer form).centauri_t6050_suspend(), the test is nowphase >= READY->pci_save_state()andphase < READY-> -16. Before, it wasphase != READY-> -16.N1 automatic startup failed, then runsystemctl suspend. Before this change dmesg shows the suspend refused with -16 from the N1. With it the machine sleeps and wakes. A normal s2idle with Wi-Fi up should behave as before.Reported by @RINNECODER in #1380, including the fix.
Assisted-by: LLM (Claude:Opus 5.5)