diff mbox

omap:iommu-load cam register before flushing the entry

Message ID 1282312218-26545-1-git-send-email-h-kanigeri2@ti.com (mailing list archive)
State Awaiting Upstream
Delegated to: Tony Lindgren
Headers show

Commit Message

Kanigeri, Hari Aug. 20, 2010, 1:50 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/iommu.c b/arch/arm/plat-omap/iommu.c
index 2e603fe..c534280 100644
--- a/arch/arm/plat-omap/iommu.c
+++ b/arch/arm/plat-omap/iommu.c
@@ -315,6 +315,7 @@  void flush_iotlb_page(struct iommu *obj, u32 da)
 		if ((start <= da) && (da < start + bytes)) {
 			dev_dbg(obj->dev, "%s: %08x<=%08x(%x)\n",
 				__func__, start, da, bytes);
+			iotlb_load_cr(obj, &cr);
 			iommu_write_reg(obj, 1, MMU_FLUSH_ENTRY);
 		}
 	}