iommu/arm-smmu: Fix write to GERRORN register
authorPrem Mallappa <pmallapp@broadcom.com>
Mon, 14 Dec 2015 16:31:14 +0000 (22:01 +0530)
committerWill Deacon <will.deacon@arm.com>
Thu, 17 Dec 2015 12:05:35 +0000 (12:05 +0000)
commit324ba1082323a51a3ad282c20e3d3b11845cf030
tree4e077256a6f838210dffd42ad84f714fa182adce
parentfdc38967633ec23b3b24dfc487dfb7b90d1a0215
iommu/arm-smmu: Fix write to GERRORN register

When acknowledging global errors, the GERRORN register should be written
with the original GERROR value so that active errors are toggled.

This patch fixed the driver to write the original GERROR value to
GERRORN, instead of an active error mask.

Signed-off-by: Prem Mallappa <pmallapp@broadcom.com>
[will: reworked use of active bits and fixed commit log]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c