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

Fix the commit 394911048e66 ("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: 394911048e66 ('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