]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/dma/direct: take DMA offset into account in dma_direct_supported
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Aug 2018 06:07:52 +0000 (08:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 1 Sep 2018 13:42:28 +0000 (15:42 +0200)
commit6c5220dd715ba4dc2dbf7b1821fb0a40c1ff7f18
treef4204c8cb840ebc8c6771f1cbba6247b43c76b48
parent0ff97265403d59a684be8666710156706ccfd8fa
kernel/dma/direct: take DMA offset into account in dma_direct_supported

When a device has a DMA offset the dma capable result will change due
to the difference between the physical and DMA address.  Take that into
account.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
kernel/dma/direct.c