diff options
author | Christoph Hellwig <hch@lst.de> | 2019-04-28 21:57:39 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-06-03 17:00:08 +0300 |
commit | 2e96e04d25caaca8039ba9561e7e02ee8a192553 (patch) | |
tree | 56a89a791c0a8f2412fd8cdbd776ad352fef4774 /arch/mips/jazz/jazzdma.c | |
parent | c30700db9eaabb35e0b123301df35a6846e6b6b4 (diff) | |
download | linux-2e96e04d25caaca8039ba9561e7e02ee8a192553.tar.xz |
MIPS: use the generic uncached segment support in dma-direct
Stop providing the arch alloc/free hooks and just expose the segment
offset instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Paul Burton <paul.burton@mips.com>
Diffstat (limited to 'arch/mips/jazz/jazzdma.c')
-rw-r--r-- | arch/mips/jazz/jazzdma.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/mips/jazz/jazzdma.c b/arch/mips/jazz/jazzdma.c index bedb5047aff3..1804dc9d8136 100644 --- a/arch/mips/jazz/jazzdma.c +++ b/arch/mips/jazz/jazzdma.c @@ -575,10 +575,6 @@ static void *jazz_dma_alloc(struct device *dev, size_t size, return NULL; } - if (!(attrs & DMA_ATTR_NON_CONSISTENT)) { - dma_cache_wback_inv((unsigned long)ret, size); - ret = (void *)UNCAC_ADDR(ret); - } return ret; } @@ -586,8 +582,6 @@ static void jazz_dma_free(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle, unsigned long attrs) { vdma_free(dma_handle); - if (!(attrs & DMA_ATTR_NON_CONSISTENT)) - vaddr = (void *)CAC_ADDR((unsigned long)vaddr); dma_direct_free_pages(dev, size, vaddr, dma_handle, attrs); } |