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)
committerCris Jansson <cjansson@ti.com>
Mon, 22 Aug 2011 23:15:03 +0000 (18:15 -0500)
commit7d7439d093835bc584eed7ff4ebc85035b42f9cc
treef838f992aec77a740d3e88c30e8a3512d68e01e3
parentb9e038beae5f1a801aa9ba0381bb75d7fc4233ff
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