aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorOmar Ramirez Luna <omar.luna@linaro.org>2012-11-19 20:05:48 -0500
committerJoerg Roedel <joro@8bytes.org>2012-12-03 12:47:30 -0500
commita33977206cd167cb7541cf9044828552d9cae540 (patch)
treec712612f3d26eabe9a9020c80b9038170ae4e30f /drivers
parent18e170d03bcd17f5ccb35b271a95783f63145be7 (diff)
iommu/omap: Remove redundant clock handling on ISR
For the interrupt to be generated, the mmu clock should be already enabled while translating a virtual address, so, this call to clock handling is just increasing/decreasing the counter. This works now, because its users need the same clock and they indirectly power the mmu, in this interrupt context the handling of clocks inside the ISR doesn't seem to be needed nor helping. Next patch should also correct the dependency on clients to handle iommu clocks. Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org> Tested-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/omap-iommu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index badc17c2bcb4..6b1288cddaef 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -807,9 +807,7 @@ static irqreturn_t iommu_fault_handler(int irq, void *data)
807 if (!obj->refcount) 807 if (!obj->refcount)
808 return IRQ_NONE; 808 return IRQ_NONE;
809 809
810 clk_enable(obj->clk);
811 errs = iommu_report_fault(obj, &da); 810 errs = iommu_report_fault(obj, &da);
812 clk_disable(obj->clk);
813 if (errs == 0) 811 if (errs == 0)
814 return IRQ_HANDLED; 812 return IRQ_HANDLED;
815 813