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
Conversation
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, |
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.
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 ?
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.
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.
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>
Provide raw mode in ST HCI SPI Bluetooth driver to support host-less configuration.