-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Bluetooth: Controller: Implement bt_hci_driver::close #46166
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
Conversation
ppryga-nordic
left a comment
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.
LGTM
641cdea to
6c31dc2
Compare
Dismissing, my change requests are addressed. Will approve after I get a chance to test it.
819fd14 to
f56c5e0
Compare
When bt_disable() was introduced, some of the global variables that handle key aspects of Bluetooth were not converted to be also re-initialized every time that the stack was disabled and the enabled again. This meant that the FIFO and semaphore in the device structure were not reset whenever the corresponding threads using them were shut down and then restarted. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Allow the controller to be deinitialized, adding the whole chain of calls: - ll_deinit() - lll_deinit() - lll_clock_deinit() in order to be able to turn everything off, including the controller's refcount of the LF clock. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
The open source controller did not expose support for shutting it down via the close() API in the HCI driver. Add support for it, which completes the support for disabling and enabling the Bluetooth stack in Zephyr. Closes zephyrproject-rtos#3192. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
asbjornsabo
left a comment
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.
LGTM
ppryga-nordic
left a comment
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.
LGTM


The open source controller did not expose support for shutting it down
via the close() API in the HCI driver. Add support for it, which
completes the support for disabling and enabling the Bluetooth stack in
Zephyr.
Closes #3192.
Signed-off-by: Carles Cufi carles.cufi@nordicsemi.no