Skip to content

Commit

Permalink
swiotlb: wire up ->dma_supported in swiotlb_dma_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig committed Jan 15, 2018
1 parent 251533e commit aaf796d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit aaf796d

Please sign in to comment.