From 9b31631df14e32c9ac3f3534f1536edd5aa90c8c Mon Sep 17 00:00:00 2001 From: Yuqiang Wang Date: Thu, 10 Oct 2024 09:32:17 +0800 Subject: [PATCH] [drivers][spi] Fixed an issue that caused spi bus deadlock in the spi configuration --- components/drivers/spi/dev_spi_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/spi/dev_spi_core.c b/components/drivers/spi/dev_spi_core.c index cef4d0a811..648195544d 100644 --- a/components/drivers/spi/dev_spi_core.c +++ b/components/drivers/spi/dev_spi_core.c @@ -111,7 +111,7 @@ rt_err_t rt_spi_bus_configure(struct rt_spi_device *device) /* RT_EBUSY is not an error condition and * the configuration will take effect once the device has the bus */ - return -RT_EBUSY; + result = -RT_EBUSY; } /* release lock */