]> git.ipfire.org Git - thirdparty/u-boot.git/commit
spi: stm32-ospi: Increase read throughput in indirect mode
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 16 Dec 2025 15:31:52 +0000 (16:31 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 29 Jan 2026 09:47:57 +0000 (10:47 +0100)
commit9e8bc1c6be751b59e1d782dff3c0cc8703cc18d4
tree107492ba63dfa0c37af613e0fc996c487faff965
parent6a1bdb7e952d5841f42742fefa907cae5dc8d50a
spi: stm32-ospi: Increase read throughput in indirect mode

Schedule() is called every u8/u16 or u32 read accesses which is overkill.
Move schedule() from stm32_ospi_read_fifo() to stm32_ospi_tx_poll()
and call schedule() only every 1MB chunk of data.

Test performed by reading 64MB on sNOR on stm32mp257f-ev1 board:

          before      after    ratio
Read  :  10.6MB/s    14.2MB/s   +34%

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/spi/stm32_ospi.c