OMAP: iommu: disable interrupts if mmufault is not handled
authorFernando Guzman Lugo <fernando.lugo@ti.com>
Mon, 21 Feb 2011 20:43:43 +0000 (14:43 -0600)
committerSubramaniam C.A <subramaniam.ca@ti.com>
Thu, 1 Sep 2011 19:02:06 +0000 (14:02 -0500)
commitc06ec2ab50e653b01524c53a1d00affb3c6996c7
treed7464a81bde2b80fadde7a6c75e5d10f70e9593f
parentf6bb69edbfacf21018de292dc146477747040d64
OMAP: iommu: disable interrupts if mmufault is not handled

If the mmufault callback registered by the user is not able to manage the
mmufault, we need to disable the interrupts to avoid being interrupted again
and again.

Before, when an iommu fault happended, iommu_disable() was being called.
However, it gives an unhandled abort when user calls iommu_put() because the
module clocks are already disabled.

Also, it removes irq acking from omap2_iommu_fault_isr function, due to MMU
tables not being updated with a valid pa, so there is no point acking since the
interrupt and status flag will be set again.

Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
arch/arm/mach-omap2/iommu2.c
arch/arm/plat-omap/iommu.c