iommu/rockchip: Fix TLB flush of secondary IOMMUs
authorTomasz Figa <tfiga@chromium.org>
Fri, 23 Mar 2018 07:38:06 +0000 (15:38 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 10:22:26 +0000 (12:22 +0200)
commitbf2a5e717a47d042ca5f9f438cf186633f23033b
tree34e615a73cabfa2c6627de7b35088d473690cb77
parent0416bf6479acef646ad8c7396f73ecd936aa84bb
iommu/rockchip: Fix TLB flush of secondary IOMMUs

Due to the bug in current code, only first IOMMU has the TLB lines
flushed in rk_iommu_zap_lines. This patch fixes the inner loop to
execute for all IOMMUs and properly flush the TLB.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c