iommu/rockchip: Remove redundant DMA syncs
authorRobin Murphy <robin.murphy@arm.com>
Fri, 21 May 2021 13:49:39 +0000 (14:49 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Jun 2021 15:11:26 +0000 (17:11 +0200)
commit9197bc958fc98ce17341636b3368f180a23d9653
tree02cba7f1e3b2ecf37f910ce2cdbbefb80293aabe
parent8124c8a6b35386f73523d27eacb71b5364a68c4c
iommu/rockchip: Remove redundant DMA syncs

When we allocate new pagetable pages, we don't modify them between the
initial dma_map_single() call and the dma_sync_single_for_device() call
via rk_iommu_flush(), so the latter is entirely pointless.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/5c29a9ff0a20df0167635b1901f94b5195c1fb28.1621604979.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c