From 74fa8cef21d132ae38858db27af70a2122191ed5 Mon Sep 17 00:00:00 2001 From: Jeremy LOCHE Date: Fri, 31 Jul 2020 10:37:00 +0200 Subject: [PATCH] drivers: bluetooth: hci_spi: add missing gpio_dt_flags to spi_cs_config Fixes #27280 by adding the new gpio_dt_flags to the HCI spi cs config. Signed-off-by: Jeremy LOCHE --- drivers/bluetooth/hci/spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci/spi.c b/drivers/bluetooth/hci/spi.c index 6ce14fa0cb5..88ce63a1d76 100644 --- a/drivers/bluetooth/hci/spi.c +++ b/drivers/bluetooth/hci/spi.c @@ -258,7 +258,8 @@ static int configure_cs(void) #ifdef GPIO_CS_PIN static struct spi_cs_control spi_conf_cs; - spi_conf_cs.gpio_pin = GPIO_CS_PIN, + spi_conf_cs.gpio_pin = GPIO_CS_PIN; + spi_conf_cs.gpio_dt_flags = GPIO_CS_FLAGS; spi_conf_cs.gpio_dev = device_get_binding( DT_INST_SPI_DEV_CS_GPIOS_LABEL(0)); if (!spi_conf_cs.gpio_dev) {