From e2e07060094cbe5df78f954a369bef8f22750e1b Mon Sep 17 00:00:00 2001 From: Neo Xu Date: Tue, 1 Oct 2024 20:43:49 +0800 Subject: [PATCH] espressif/spi: fix missing SPI setup Signed-off-by: Neo Xu --- arch/risc-v/src/common/espressif/esp_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/risc-v/src/common/espressif/esp_spi.c b/arch/risc-v/src/common/espressif/esp_spi.c index d145d840e1..5113c30dea 100644 --- a/arch/risc-v/src/common/espressif/esp_spi.c +++ b/arch/risc-v/src/common/espressif/esp_spi.c @@ -752,6 +752,7 @@ static uint32_t esp_spi_poll_send(struct esp_spi_priv_s *priv, uint32_t wd) spi_ll_set_mosi_bitlen(priv->ctx->hw, priv->nbits); spi_hal_prepare_data(priv->ctx, priv->dev_cfg, &trans); + spi_hal_setup_trans(priv->ctx, priv->dev_cfg, &trans); spi_hal_user_start(priv->ctx); while (!spi_hal_usr_is_done(priv->ctx));