spi: i.MX: optimize transfers for ECSPI v2.3
Instead of writing one word to the txfifo and then wait until
one is received in the rxfifo we can write while the txfifos
are not full and read as long the rxfifos contain data. This
makes transfers for the m25p80 driver around 7 times faster
here.

Unlike the last version this time we only optimize the common
case with 8 bits per word and SPI_LSB_FIRST cleared. The other
cases would require more bit shuffling of the data.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 7da99e5 commit 412a0e175069102761e85d4518c50dfb9b03519b
@Sascha Hauer Sascha Hauer authored on 31 Aug 2015
Showing 2 changed files
View
drivers/spi/imx_spi.c
View
include/spi/imx-spi.h