espressif/spi: fix missing SPI setup

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu 2024-10-01 20:43:49 +08:00 committed by Xiang Xiao
parent 3636495f39
commit e2e0706009
1 changed files with 1 additions and 0 deletions

View File

@ -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));