Skip to content

Commit

Permalink
spi: rspi: Add DMA support for RSPI on RZ/A1H
Browse files Browse the repository at this point in the history
Enable DMA support for RSPI on r7s72100 (RZ/A1H).

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Geert Uytterhoeven authored and Mark Brown committed Jun 2, 2014
1 parent 4f12b5e commit e7fb921
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/spi/spi-rspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,9 @@ static int rspi_rz_transfer_one(struct spi_master *master,

rspi_rz_receive_init(rspi);

if (master->can_dma && __rspi_can_dma(rspi, xfer))
return rspi_dma_transfer(rspi, &xfer->tx_sg, &xfer->rx_sg);

ret = rspi_pio_transfer(rspi, xfer->tx_buf, xfer->rx_buf, xfer->len);
if (ret < 0)
return ret;
Expand Down

0 comments on commit e7fb921

Please sign in to comment.