Skip to content

Bluetooth: bound J493 resume-timeout transport recovery - #66

Merged
chriskearney merged 1 commit into
integration/aurorafrom
fix/j493-bluetooth-resume-recovery
Oct 11, 2026
Merged

chriskearney merged 1 commit into
integration/aurorafrom
fix/j493-bluetooth-resume-recovery

Conversation

@chriskearney

Copy link
Copy Markdown

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.o and hci_sync.o passes 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.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant