drivers: bluetooth: hci: Special handling of hci_reset only for ST SPI 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>
This commit is contained in:
parent
9d8d20febb
commit
bcf2ee9d49
1 changed files with 2 additions and 2 deletions
|
@ -536,7 +536,7 @@ static int bt_spi_send(struct net_buf *buf)
|
|||
|
||||
LOG_HEXDUMP_DBG(buf->data, buf->len, "SPI TX");
|
||||
|
||||
#if (DT_HAS_COMPAT_STATUS_OKAY(st_hci_spi_v1) || DT_HAS_COMPAT_STATUS_OKAY(st_hci_spi_v2))
|
||||
#if DT_HAS_COMPAT_STATUS_OKAY(st_hci_spi_v1)
|
||||
/*
|
||||
* Since a RESET has been requested, the chip will now restart.
|
||||
* Unfortunately the BlueNRG will reply with "reset received" but
|
||||
|
@ -547,7 +547,7 @@ static int bt_spi_send(struct net_buf *buf)
|
|||
if (bt_spi_get_cmd(buf->data) == BT_HCI_OP_RESET) {
|
||||
k_sem_take(&sem_initialised, K_FOREVER);
|
||||
}
|
||||
#endif /* DT_HAS_COMPAT_STATUS_OKAY(st_hci_spi_v1) || DT_HAS_COMPAT_STATUS_OKAY(st_hci_spi_v2) */
|
||||
#endif /* DT_HAS_COMPAT_STATUS_OKAY(st_hci_spi_v1) */
|
||||
net_buf_unref(buf);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue