dma-direct: mark as is_phys

"Linux Kernel Mailing List" <[email protected]> Fri, 16 Feb 2018 20:48:25 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/f25e6f6b4eae7e25e92e91a570cae84bf83e751a
Commit:     f25e6f6b4eae7e25e92e91a570cae84bf83e751a
Parent:     9d37c094dacda531ac3e529dd4dd139e3c0b7811
Refname:    refs/heads/master
Author:     Christoph Hellwig <[email protected]>
AuthorDate: Fri Feb 2 09:21:07 2018 +0100
Committer:  Christoph Hellwig <[email protected]>
CommitDate: Mon Feb 12 15:59:06 2018 +0000

    dma-direct: mark as is_phys
    
    Various PCI_DMA_BUS_IS_PHYS implementations rely on this flag to make proper
    decisions for block and networking addressability.
    
    Signed-off-by: Christoph Hellwig <[email protected]>
---
 lib/dma-direct.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/dma-direct.c b/lib/dma-direct.c
index 40b1f92f2214..fdc733cf9e30 100644
--- a/lib/dma-direct.c
+++ b/lib/dma-direct.c
@@ -152,5 +152,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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html