[PATCH 3/3] spi: stm32-qspi: Optimize FIFO accesses using u16 or u32

Patrick DELAUNAY patrick.delaunay at foss.st.com
Mon Jan 19 14:11:38 CET 2026


Hi,

On 12/16/25 16:31, Patrice Chotard wrote:
> 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%
>
> Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>
> ---
>   drivers/spi/stm32_qspi.c | 59 ++++++++++++++++++++++++++++++++++++++++--------
>   1 file changed, 50 insertions(+), 9 deletions(-)
>
Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com> Thanks Patrick



More information about the U-Boot mailing list