omap iommu: missing check for TLB valid entry
authorKanigeri, Hari <h-kanigeri2@ti.com>
Thu, 22 Apr 2010 23:26:10 +0000 (23:26 +0000)
committerHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Fri, 14 May 2010 07:23:30 +0000 (10:23 +0300)
Added the missing TLB valid entry setting for cam register

Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
arch/arm/mach-omap2/iommu2.c

index 4f63dc6859a435f489544c9c241579c7da95a07e..d29ebff6fde3224fb4ed2035c2020bfcd19b801d 100644 (file)
@@ -184,7 +184,7 @@ static struct cr_regs *omap2_alloc_cr(struct iommu *obj, struct iotlb_entry *e)
        if (!cr)
                return ERR_PTR(-ENOMEM);
 
-       cr->cam = (e->da & MMU_CAM_VATAG_MASK) | e->prsvd | e->pgsz;
+       cr->cam = (e->da & MMU_CAM_VATAG_MASK) | e->prsvd | e->pgsz | e->valid;
        cr->ram = e->pa | e->endian | e->elsz | e->mixed;
 
        return cr;