spi: rspi: Fix loopback mode for Dual/Quad SPI Transfers
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Fri, 21 Feb 2014 16:29:18 +0000 (17:29 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:26 +0000 (09:21 +0900)
commit9af989c71423c977522eb24798dd00a8df24291c
tree3c82dfc4dc8ce13d3f5e1b6f47b86a65a298faed
parent61394452f0faa7690ddc1d56fcbe4983d31b8030
spi: rspi: Fix loopback mode for Dual/Quad SPI Transfers

While normal Dual and Quad SPI Transfers are unidirectional, we must do
a bidirectional transfer if loopback mode is enabled, else rx_buf is not
filled.

With spidev it seemed to work, as spidev uses the same buffer for
tranmission and reception.

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit ba824d4971691a7f1f66429e378a08a95fbb5b79)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/spi/spi-rspi.c