diff options
author | Christoph Hellwig <hch@lst.de> | 2020-08-18 17:07:21 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-09-25 07:20:43 +0300 |
commit | 91af2dd255ac9284ee2942a359fa8d2b49849e0b (patch) | |
tree | abab6c8c571f41e45f0a5719ee27f4cdcd4028fc /Documentation/core-api/librs.rst | |
parent | 48d15814dd0fc429e3205b87f1af6cc472018478 (diff) | |
download | linux-91af2dd255ac9284ee2942a359fa8d2b49849e0b.tar.xz |
53c700: improve non-coherent DMA handling
Switch the 53c700 driver to only use non-coherent descriptor memory if it
really has to because dma_alloc_coherent fails. This doesn't matter for
any of the platforms it runs on currently, but that will change soon.
To help with this two new helpers to transfer ownership to and from the
device are added that abstract the syncing of the non-coherent memory.
The two current bidirectional cases are mapped to transfers to the
device, as that appears to what they are used for. Note that for parisc,
which is the only architecture this driver needs to use non-coherent
memory on, the direction argument of dma_cache_sync is ignored, so this
will not change behavior in any way.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'Documentation/core-api/librs.rst')
0 files changed, 0 insertions, 0 deletions