Repository navigation
wifi: apple: centauri: T6050: don't veto s2idle for a failed or stopped N1 - #2795
Draft
RyanTheTide wants to merge 1 commit into
Draft
RyanTheTide wants to merge 1 commit into
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]>
Contributor
Author
|
Review at e34e08f (non-author, draft). No blocker found; ready once a T6050 row is in.
Small points, not blocking:
Assisted-by: LLM (Claude:Opus 5.5) |
This was referenced Nov 27, 2026
Merged
Merged
Contributor
Author
This was referenced Nov 28, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #2271 (same changes, commit trailers fixed).
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: 0 errors, 0 warnings.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.