-
Couldn't load subscription status.
- Fork 8.1k
Bluetooth: Controller: Replace Kconfig select with depends #98264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Bluetooth: Controller: Replace Kconfig select with depends #98264
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the Bluetooth controller's Kconfig file by replacing select statements with depends on clauses where appropriate. This change aligns with Kconfig best practices where features should explicitly declare their dependencies rather than silently enabling them.
Key Changes:
- Converted several
selectstatements todepends onto make dependencies explicit - Added explicit
depends onclauses for features that previously used implicit enabling - Named several previously unnamed choice blocks for better clarity
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| config BT_CTLR_RX_PDU_META | ||
| prompt "RX pdu meta data" | ||
| bool | ||
| bool"RX pdu meta data" |
Copilot
AI
Oct 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space between bool and the string literal. Should be bool \"RX pdu meta data\".
| depends on BT_CTLR_RADIO_ENABLE_FAST && \ | ||
| (SOC_COMPATIBLE_NRF52X || \ | ||
| SOC_COMPATIBLE_NRF53X || \ | ||
| SOC_COMPATIBLE_NRF54LX) | ||
| default y if SOC_COMPATIBLE_NRF54LX |
Copilot
AI
Oct 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dependency chain is broken. BT_CTLR_RADIO_ENABLE_FAST now depends on this option (line 1006), but this option defaults to y when SOC_COMPATIBLE_NRF54LX (line 1010). However, looking at lines 983-985, BT_CTLR_RADIO_ENABLE_FAST only depends on SOC types without depending on BT_CTLR_SW_SWITCH_SINGLE_TIMER. This creates a situation where BT_CTLR_SW_SWITCH_SINGLE_TIMER depends on BT_CTLR_RADIO_ENABLE_FAST, which may not match the original select-based logic where enabling radio fast mode would automatically enable single timer switching on NRF54LX.
I reviewed the pull request metadata you provided (title: "Bluetooth: Controller: Replace Kconfig select with depends") and analyzed the likely changes, their rationale, and the ways they can affect builds and users. I did not run CI or read the patch itself, so the analysis below is based on the standard Kconfig semantics in Zephyr/Linux and the implications of replacing Kconfig "select" with "depends on". Summary
Possible regression failures, breakages, and drawbacks
Concrete examples of the types of failures you might observe
How to detect and validate regressions (practical tests)
Mitigations and recommendations for the PR / maintainers
Checklist for reviewers / CI to run before merging
Summary recommendation
If you want, I can:
Which would you like me to do next? |
Replace use of `select` with `depends on` in the LL_SW_SPLIT Kconfig options. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
c3837b0 to
f17dcb1
Compare
|



Replace use of
selectwithdepends onin the LL_SW_SPLIT Kconfig options.