]> 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)
commit5c62c1c67903621cfa715d6f690548ee53301620
tree80685b02a9ac4983079d24f489563ff6077372d5
parente19b205be43d11bff638cad4487008c48d21c103
iommu/io-pgtable-arm-v7s: Need dma-sync while there is no QUIRK_NO_DMA

Fix the commit 81b3c2521844 ("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: 81b3c2521844 ('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