]> git.ipfire.org Git - thirdparty/u-boot.git/commit
spi: stm32-qspi: Optimize FIFO accesses using u16 or u32
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 16 Dec 2025 15:31:54 +0000 (16:31 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 29 Jan 2026 09:47:57 +0000 (10:47 +0100)
commitd67c721ec5397e103faef781c146bdaa328e8200
treed673b0d04c19e84f623da21f38113de52625721f
parentaddebf9e818683e176496470b81758529f517825
spi: stm32-qspi: Optimize FIFO accesses using u16 or u32

FIFO accesses uses u8 only for read/write.
In order to optimize throughput, add u16 or u32 read/write
accesses when possible.
Set FIFO threshold level value accordingly.

Test performed by writing and reading 64MB on sNOR on
stm32mp157c-ev1 board:

          before      after    ratio
Write :  428 KB/s   719 KB/s    +68%
Read  :  520 KB/s  3200 KB/s   +615%

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