iommu/omap: Correct init value of iotlb_entry valid field
authorSuman Anna <s-anna@ti.com>
Tue, 18 Mar 2014 01:31:32 +0000 (20:31 -0500)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 16 Apr 2014 14:30:13 +0000 (16:30 +0200)
commitd760e3e0f1afb96e0b813384258cea0afcf1b4d4
treef17d6631ee69d887efc64a3a5c978c73ec1d9227
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
iommu/omap: Correct init value of iotlb_entry valid field

The iotlb_entry field values are used directly in omap2_alloc_cr,
a function used in preparing the MMU_CAM and MMU_RAM registers.
The iotlb_entry.valid value is being set incorrectly to 1 at the
moment, and this would result in overriding the PAGESIZE bit field
of the MMU_CAM register if prefetching of the entries were to be
supported.

The bug has not caused any MMU faults due to incorrect size
programming so far as the prefetching is disabled by default. Fix
this by using the correct init value for the iotlb_entry.valid
field.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/iommu/omap-iommu.c
This page took 0.030867 seconds and 5 git commands to generate.