diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-16 12:22:43 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 13:05:21 +0000 |
commit | 99adef310f682d6343cb40c1f6c9c25a4b3a450d (patch) | |
tree | 40310c296f820941de639b761927ee6375a623ce /drivers/spi/spi-s3c64xx.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
spi: Provide core support for DMA mapping transfers
The process of DMA mapping buffers for SPI transfers does not vary between
devices so in order to save duplication of code in drivers this can be
factored out into the core, allowing it to be integrated with the work that
is being done on factoring out the common elements from the data path
including more sharing of dmaengine code.
In order to use this masters need to provide a can_dma() operation and while
the hardware is prepared they should ensure that DMA channels are provided
in tx_dma and rx_dma. The core will then ensure that the buffers are mapped
for DMA prior to calling transfer_one_message().
Currently the cleanup on error is not complete, this needs to be improved.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-s3c64xx.c')
0 files changed, 0 insertions, 0 deletions