Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77bc5abb authored by Kanigeri, Hari's avatar Kanigeri, Hari Committed by Hiroshi DOYU
Browse files

omap iommu: missing check for TLB valid entry



Added the missing TLB valid entry setting for cam register

Signed-off-by: default avatarHari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
parent f779f923
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -184,7 +184,7 @@ static struct cr_regs *omap2_alloc_cr(struct iommu *obj, struct iotlb_entry *e)
	if (!cr)
	if (!cr)
		return ERR_PTR(-ENOMEM);
		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;
	cr->ram = e->pa | e->endian | e->elsz | e->mixed;


	return cr;
	return cr;