diff options
author | Ingo Molnar <mingo@kernel.org> | 2018-02-23 08:20:18 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-23 08:20:18 +0100 |
commit | 24e8db62c135e142e23bec597adb135bd6a8828f (patch) | |
tree | 2126fe037ff60851e778838f9b27edabe3b28f67 /lib/dma-direct.c | |
parent | a66b86f0026b07b0ea7340e3690ac9fd5ac1499a (diff) | |
parent | 91ab883eb21325ad80f3473633f794c78ac87f51 (diff) |
Merge tag 'v4.16-rc2' into x86/platform, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/dma-direct.c')
-rw-r--r-- | lib/dma-direct.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dma-direct.c b/lib/dma-direct.c index 40b1f92f2214..c9e8e21cb334 100644 --- a/lib/dma-direct.c +++ b/lib/dma-direct.c @@ -84,6 +84,10 @@ again: return page_address(page); } +/* + * NOTE: this function must never look at the dma_addr argument, because we want + * to be able to use it as a helper for iommu implementations as well. + */ void dma_direct_free(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) { @@ -152,5 +156,6 @@ const struct dma_map_ops dma_direct_ops = { .map_sg = dma_direct_map_sg, .dma_supported = dma_direct_supported, .mapping_error = dma_direct_mapping_error, + .is_phys = 1, }; EXPORT_SYMBOL(dma_direct_ops); |