diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-08 17:56:22 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-09-11 09:14:25 +0200 |
commit | 7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029 (patch) | |
tree | 306eb3d7befdec2da08f45e88e2dd2aaf6e5a5a1 /arch/mips/loongson2ef | |
parent | dma-direct: use phys_to_dma_direct in dma_direct_alloc (diff) | |
download | linux-7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029.tar.xz linux-7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029.zip |
dma-direct: remove __dma_to_phys
There is no harm in just always clearing the SME encryption bit, while
significantly simplifying the interface.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/mips/loongson2ef')
-rw-r--r-- | arch/mips/loongson2ef/fuloong-2e/dma.c | 2 | ||||
-rw-r--r-- | arch/mips/loongson2ef/lemote-2f/dma.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/loongson2ef/fuloong-2e/dma.c b/arch/mips/loongson2ef/fuloong-2e/dma.c index e122292bf666..83fadeb3fd7d 100644 --- a/arch/mips/loongson2ef/fuloong-2e/dma.c +++ b/arch/mips/loongson2ef/fuloong-2e/dma.c @@ -6,7 +6,7 @@ dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr) return paddr | 0x80000000; } -phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t dma_addr) +phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) { return dma_addr & 0x7fffffff; } diff --git a/arch/mips/loongson2ef/lemote-2f/dma.c b/arch/mips/loongson2ef/lemote-2f/dma.c index abf0e39d7e46..302b43a14eee 100644 --- a/arch/mips/loongson2ef/lemote-2f/dma.c +++ b/arch/mips/loongson2ef/lemote-2f/dma.c @@ -6,7 +6,7 @@ dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr) return paddr | 0x80000000; } -phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t dma_addr) +phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) { if (dma_addr > 0x8fffffff) return dma_addr; |