Skip to content
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

drivers: bluetooth: hci: Support raw mode in ST HCI SPI BT driver #69623

Merged
merged 4 commits into from Mar 11, 2024

Conversation

HoZHel
Copy link
Contributor

@HoZHel HoZHel commented Feb 29, 2024

Provide raw mode in ST HCI SPI Bluetooth driver to support host-less configuration.

return 0;
}

static const struct bt_hci_driver drv = {
.name = DEVICE_DT_NAME(DT_DRV_INST(0)),
.bus = BT_HCI_DRIVER_BUS_SPI,
#if defined(CONFIG_BT_BLUENRG_ACI)
.quirks = BT_QUIRK_NO_RESET,
Copy link
Member

Choose a reason for hiding this comment

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

So BT_QUIRK_NO_RESET is now applied for !CONFIG_BT_BLUENRG_ACI configs.
Does it relate to current change done in this commit ? If yes, can you elaborate in commit message ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this driver is only for ST HCI SPI protocol, BT_QUIRK_NO_RESET always applies. In other words, as it was inherited from spi.c, it should have not been there since the beginning. I will add the note to the commit message.

jhedberg
jhedberg previously approved these changes Mar 1, 2024
Move bt_spi_send_aci_config to setup function.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
Add raw mode in ST HCI SPI BT driver to support host-less configuration.

Remove compilation dependency for BT_QUIRK_NO_RESET as it applies to all
configurations.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
…I v1

Exclude devices based on ST SPI protocol v2 from special handling of
hci_reset opcode as it is redundant.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
Provide support for BlueNRG-based boards to run samples required raw mode.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
@fabiobaltieri fabiobaltieri merged commit 569f8f0 into zephyrproject-rtos:main Mar 11, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants