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

2020-09-14 Thread Ludwig Zenz
> 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 SP

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

2020-08-10 Thread Alain Volmat
From: Amelie Delaunay 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. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: fix conditional st