]> git.baikalelectronics.ru Git - kernel.git/commit
spi: rspi: Move RSPI-specific setup out of DMA routines
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 2 Jun 2014 13:38:13 +0000 (15:38 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 2 Jun 2014 14:49:34 +0000 (15:49 +0100)
commitec9c3c1d27a8c897d360e09ec459ac9f963a688c
tree5833dd9ea1953097d4062b12fc68f1b350701e0d
parentea3b54c092175163423ed3881aaced7053f30aaa
spi: rspi: Move RSPI-specific setup out of DMA routines

Refactor RSPI (on SH) DMA handling to make it reusable for other RSPI
implementations:
  - Call the DMA routines after configuring the TX Mode bit and after
    calling rspi_receive_init(), so these RSPI-specific operations can be
    removed from the DMA routines,
  - Absorb rspi_transfer_out_in() into rspi_transfer_one().

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-rspi.c