Repository navigation
Bluetooth: bound J493 resume-timeout transport recovery - #66
Merged
chriskearney merged 1 commit intoOct 11, 2026
Merged
Conversation
Serialize timeout recovery with HCI power changes and reject stale resume requests before resetting the controller. Fence recovery before PCI quiescence and preserve the calibration and address reload path. Signed-off-by: Chris Kearney <[email protected]>
This was referenced Oct 11, 2026
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.
J493’s BCM4378 can return from s2idle without completing HCI commands; recovery currently requires a manual radio reset. Add one bounded, serialized transport recovery after a command timeout in a powered resume session.
A recovery request carries the resume epoch. Power-off, rfkill, close/new session, suspend and unregister invalidate or drain stale requests. A small synchronous HCI close/open helper keeps the reset inside the existing request lock; calibration and the Mac’s Bluetooth address are restored through the normal driver path. The existing startup retry budget remains separate. Automatic recovery is restricted to J493/BCM4378.
Validation: 42 production callback/core timeout controls pass with ASan/UBSan; four original-body negatives and five mutation controls fail as expected. Independent review confirms the frozen source and lifecycle fences. Focused ARM64 compilation of
hci_bcm4377.oandhci_sync.opasses with Clang 22.1.8 and Rust 1.93.1.Related #21. Repeated real J493 paired-device resume tests remain required; this is a bounded recovery candidate, not a verified explanation for the underlying firmware timeout or a sibling-Wi-Fi ordering claim. No release assets change.