bluetooth: hci: spi: handle interrupt return code

Handle the GPIO module failing to configure the interrupt line.

Fixes #65583

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2023-11-23 18:19:54 +10:00 committed by Anas Nashif
parent 8b95376625
commit e1cd9f335d

View file

@ -493,7 +493,10 @@ static int bt_spi_open(void)
}
/* Enable the interrupt line */
gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_TO_ACTIVE);
err = gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_TO_ACTIVE);
if (err) {
return err;
}
/* Take BLE out of reset */
k_sleep(K_MSEC(DT_INST_PROP_OR(0, reset_assert_duration_ms, 0)));