Skip to content

Conversation

@thomasstenersen
Copy link
Member

These are the changes from #13631 without the out-of-tree driver support. It cleans up Kconfig dependencies in Nordic drivers and in the Bluetooth subsystem.

Thomas Stenersen added 4 commits March 12, 2019 18:15
Remove use of select to "force" enabling other configs in subsys/fs
and subsys/net/l2. The forcing will cause infinite kconfig recursion.

Signed-off-by: Thomas Stenersen <[email protected]>
This moves the vendor-specific HCI command/event configuration
definitions out of bluetooth/common into bluetooth. This allows
the controller itself to indicate its support for vendor-specific
commands/events.

Signed-off-by: Thomas Stenersen <[email protected]>
Redefining the config will not let another (out-of-source) driver be
chosen instead of the default. The driver is practically forced by the
soc settings. This commit moves default settings from soc/arm/nordic_nrf
into the drivers themselves.

Signed-off-by: Thomas Stenersen <[email protected]>
Add choice variables for CLOCK_CONTROL_NRF_SOURCE and
CLOCK_CONTROL_NRF_ACCURACY such that the choices may be augmented
out-of-tree.

Signed-off-by: Thomas Stenersen <[email protected]>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change the default here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To accommodate the worst case stack requirement if an out-of-tree controller is used. I'll add a comment in the code here and in the commit with the reasoning.

Copy link
Member

@aescolar aescolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was ok with the previous PR, I'm also ok with this one :)

By specifying the controller directly when selecting the default
BT_HCI_TX_STACK_SIZE, an external controller may rely on the final
default value when none of the in-tree controllers are used.

The value is increased to 1024 to accomodate the current worst-case
stack size.

Signed-off-by: Thomas Stenersen <[email protected]>
Copy link
Contributor

@ulfalizer ulfalizer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving

@codecov-io
Copy link

codecov-io commented Mar 12, 2019

Codecov Report

Merging #14314 into master will increase coverage by 0.14%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14314      +/-   ##
==========================================
+ Coverage   51.97%   52.12%   +0.14%     
==========================================
  Files         308      308              
  Lines       45512    45527      +15     
  Branches    10546    10552       +6     
==========================================
+ Hits        23656    23732      +76     
+ Misses      17055    16990      -65     
- Partials     4801     4805       +4
Impacted Files Coverage Δ
boards/posix/nrf52_bsim/bstests_entry.c 57.6% <0%> (-3.27%) ⬇️
drivers/clock_control/nrf_power_clock.c 50% <0%> (-2.11%) ⬇️
ext/hal/nordic/nrfx/hal/nrf_rng.h 100% <0%> (ø) ⬆️
subsys/bluetooth/controller/hci/hci.c 52.66% <0%> (+0.08%) ⬆️
subsys/bluetooth/host/hci_core.c 44.19% <0%> (+0.12%) ⬆️
kernel/sched.c 84.32% <0%> (+0.31%) ⬆️
drivers/timer/nrf_rtc_timer.c 92.53% <0%> (+0.6%) ⬆️
arch/posix/core/posix_core.c 91.91% <0%> (+1.01%) ⬆️
boards/posix/nrf52_bsim/trace_hook.c 48.78% <0%> (+4.87%) ⬆️
boards/posix/nrf52_bsim/time_machine.c 55.73% <0%> (+8.19%) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5daabe...ab3a94e. Read the comment docs.

@carlescufi
Copy link
Member

Merging since this is the non-contentious portion of #13631 which was already reviewed several days ago.

@carlescufi carlescufi merged commit c1a18fb into zephyrproject-rtos:master Mar 12, 2019
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.

6 participants