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)
committerMark Brown <broonie@linaro.org>
Sun, 23 Feb 2014 03:27:03 +0000 (12:27 +0900)
commitba824d4971691a7f1f66429e378a08a95fbb5b79
tree24c54aa3d39da05a294e9a54044683d84631f771
parentab98fcba962a57cee9fdb97aff2b25248c93cea5
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>
drivers/spi/spi-rspi.c