projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
251533e
)
swiotlb: wire up ->dma_supported in swiotlb_dma_ops
author
Christoph Hellwig
<hch@lst.de>
Sun, 24 Dec 2017 14:07:34 +0000
(15:07 +0100)
committer
Christoph Hellwig
<hch@lst.de>
Mon, 15 Jan 2018 08:35:46 +0000
(09:35 +0100)
To properly reject too small DMA masks based on the addressability of the
bounce buffer.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian König <christian.koenig@amd.com>
lib/swiotlb.c
patch
|
blob
|
history
diff --git
a/lib/swiotlb.c
b/lib/swiotlb.c
index 0fae2f45c3c01170684bf25d5ea9609a0f05dc5e..539fd1099ba9f93bfa0d2c40f548ab66ad34ffc5 100644
(file)
--- a/
lib/swiotlb.c
+++ b/
lib/swiotlb.c
@@
-1128,5
+1128,6
@@
const struct dma_map_ops swiotlb_dma_ops = {
.unmap_sg = swiotlb_unmap_sg_attrs,
.map_page = swiotlb_map_page,
.unmap_page = swiotlb_unmap_page,
+ .dma_supported = swiotlb_dma_supported,
};
#endif /* CONFIG_DMA_DIRECT_OPS */