]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/io-pgtable-arm-v7s: Need dma-sync while there is no QUIRK_NO_DMA
authorYong Wu <yong.wu@mediatek.com>
Mon, 25 Sep 2017 09:28:47 +0000 (17:28 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 27 Sep 2017 14:56:17 +0000 (16:56 +0200)
commit39b153129358cab42d7ff2e72c9f836c88363fd5
tree80685b02a9ac4983079d24f489563ff6077372d5
parent9731ba3c0e5365fd3518052ea4dd88958bc5e189
iommu/io-pgtable-arm-v7s: Need dma-sync while there is no QUIRK_NO_DMA

Fix the commit 28aa6404b653 ("iommu/io-pgtable: Introduce explicit
coherency"). If there is no IO_PGTABLE_QUIRK_NO_DMA, we should call
dma_sync_single_for_device for cache synchronization.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Fixes: 28aa6404b653 ('iommu/io-pgtable: Introduce explicit coherency')
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/io-pgtable-arm-v7s.c