diff --git a/drivers/spi/spi_ll_stm32.h b/drivers/spi/spi_ll_stm32.h index d0f6ac46dadc2c..3b95ce211bce99 100644 --- a/drivers/spi/spi_ll_stm32.h +++ b/drivers/spi/spi_ll_stm32.h @@ -219,26 +219,16 @@ static inline void ll_func_set_fifo_threshold_16bit(SPI_TypeDef *spi) static inline void ll_func_disable_spi(SPI_TypeDef *spi) { #if DT_HAS_COMPAT_STATUS_OKAY(st_stm32h7_spi) - if (LL_SPI_IsActiveMasterTransfer(spi)) { - LL_SPI_SuspendMasterTransfer(spi); - while (LL_SPI_IsActiveMasterTransfer(spi)) { - /* NOP */ - } - } - - LL_SPI_Disable(spi); - while (LL_SPI_IsEnabled(spi)) { - /* NOP */ - } - /* Flush RX buffer */ while (LL_SPI_IsActiveFlag_RXP(spi)) { (void)LL_SPI_ReceiveData8(spi); } - LL_SPI_ClearFlag_SUSP(spi); -#else - LL_SPI_Disable(spi); #endif /* st_stm32h7_spi */ + LL_SPI_Disable(spi); + + while (LL_SPI_IsEnabled(spi)) { + /* NOP */ + } } #endif /* ZEPHYR_DRIVERS_SPI_SPI_LL_STM32_H_ */