From: Christoph Hellwig Date: Sun, 24 Dec 2017 14:07:34 +0000 (+0100) Subject: swiotlb: wire up ->dma_supported in swiotlb_dma_ops X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=aaf796dc6e84e809e4c791b6517326b26312c972;p=linux.git swiotlb: wire up ->dma_supported in swiotlb_dma_ops To properly reject too small DMA masks based on the addressability of the bounce buffer. Signed-off-by: Christoph Hellwig Acked-by: Christian König --- diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 0fae2f45c3c01..539fd1099ba9f 100644 --- 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 */