Repository navigation
Bluetooth: mt7932: support modules and system suspend - #176
Merged
Merged
Conversation
The MT7932 PCIe transport cannot be selected with modular Bluetooth or system sleep enabled. Make the existing transport tristate and coordinate firmware quiescence with HCI suspend before PCI power transitions. Wait for the firmware's system-sleep acknowledgment before completing suspend. Restore the transport before resuming HCI, and undo the sleep request if suspend fails. Keep ring publication stopped while quiesced and preserve the DMA arena across sleep. Invalid notifications and failed restoration close the transport instead of retrying an uncertain state. Unregister HCI, quiesce firmware and synchronize transport work and interrupts on removal. Release device-visible storage only after bus mastering is disabled and pending PCI transactions drain; retain it if that cannot be confirmed. Hibernation, firmware recovery and warm reprobe remain unsupported. This extends the existing MT7932 transport and preserves its contributor notices and firmware/calibration path. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
RyanTheTide
added a commit
that referenced
this pull request
Oct 8, 2026
[follow-up to #176] Bluetooth: mt7932: accept nonzero HCI registration indices Original contributor commits are preserved. Conflict resolutions retain the audited shared driver APIs and their integrated review fixes. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
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.
The J700 Bluetooth transport cannot be selected when Bluetooth is modular or system sleep is enabled. Make the existing PR #153 transport tristate, add HCI suspend/resume around a bounded firmware quiesce/restore handshake, stop traffic publication while quiesced, and roll back failed sleep admission.
Removal unregisters HCI, quiesces firmware, synchronizes work and interrupts, and disables/drains PCI bus mastering before releasing device-visible storage. If quiescence or the drain cannot be confirmed, DMA storage remains retained until reset. Firmware/calibration packaging and the existing contributor notices/history are preserved; the original radio work credits Eryk Wieliczko, DjDeveloperr, Acelogic and Ryan Murray.
Validation completed:
Remote kernel/module and DTB checks are running. Neo qualification is in progress: pair, connect, remote SDP, suspend-to-idle and removal have not yet been validated. The synthetic tests are not firmware acceptance or full concurrency proof.
Hibernation, automatic firmware recovery, warm reprobe, HCI queue backpressure and simultaneous headset/audio behavior remain unsupported or unqualified. Use a cold boot after removing/faulting an activated transport. The retained PCIe bootstrap provider and the matching board configuration are separate follow-ups; this patch does not claim their lifecycle or hardware validation.
🤖 Generated with Claude Code