tmedicci commented on PR #11575: URL: https://github.com/apache/nuttx/pull/11575#issuecomment-1904322470
@w2016561536 , could you please: 1) Fill the description, including the testing method; 2) Apply the following patch to fix whether to use or not the DMA: ``` diff --git a/arch/xtensa/src/esp32s3/esp32s3_spi.c b/arch/xtensa/src/esp32s3/esp32s3_spi.c index d700fb7c33..af8681b8cd 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_spi.c +++ b/arch/xtensa/src/esp32s3/esp32s3_spi.c @@ -1223,7 +1223,7 @@ static void esp32s3_spi_exchange(struct spi_dev_s *dev, #ifdef CONFIG_ESP32S3_SPI_DMA size_t thld = CONFIG_ESP32S3_SPI_DMATHRESHOLD; - if (nwords > thld) + if ((nwords * priv->nbits) / 8 > thld) { esp32s3_spi_dma_exchange(priv, txbuffer, rxbuffer, nwords); } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org