iommu/rockchip: use status register instead of flags as parameter

When iommu fall into interrupt, status register indicate more information
than read or write flag, so use status register as parameter when callback
report_iommu_fault

Change-Id: I07c6b9996f305eb970bd1d1d2b0f2a7db53cc6ba
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
Simon Xue
2021-04-06 16:21:41 +08:00
committed by Tao Huang
parent a1efc0f6e7
commit 31331cb84b

View File

@@ -592,7 +592,7 @@ static irqreturn_t rk_iommu_irq(int irq, void *dev_id)
*/
if (iommu->domain)
report_iommu_fault(iommu->domain, iommu->dev, iova,
flags);
status);
else
dev_err(iommu->dev, "Page fault while iommu not attached to domain?\n");