[PATCH v2 2/5] spi: stm32: fix fifo threshold level in case of short transfer

Ludwig Zenz lzenz at dh-electronics.com
Mon Sep 14 06:33:00 EDT 2020


> When transfer is shorter than half of the fifo, set the data packet size
> up to transfer size instead of up to half of the fifo.
> Check also that threshold is set at least to 1 data frame.

Through a git-bisect we have identified this patch as problematic. We have an application that uses a SPI protocol with telegrams of length 2 to 16 bytes. Due to this patch we have errors in the data transfer of the MOSI direction. We use SPI in PIO mode.

Please explain what this patch should improve or what exactly is changed in the behaviour.

best regards,
Ludwig Zenz



More information about the linux-arm-kernel mailing list