iommu: msm: Don't treat address 0 as an error case

Currently, the iommu page table code treats a scattergather
list with physical address 0 as an error. This may not be
correct in all cases. Physical address 0 is a valid part
of the system and may be used for valid page allocations.
Nothing else in the system checks for physical address 0
for error so don't treat it as an error.

Change-Id: Ie9f0dae9dace4fff3b1c3449bc89c3afdd2e63a0
CRs-Fixed: 478304
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
This commit is contained in:
Laura Abbott 2013-04-22 10:01:55 -07:00 committed by Artem Borisov
parent 6b44ed1956
commit 69cd952800

View file

@ -494,12 +494,6 @@ int msm_iommu_pagetable_map_range(struct iommu_pt *pt, unsigned int va,
chunk_offset = 0;
sg = sg_next(sg);
pa = get_phys_addr(sg);
if (pa == 0) {
pr_debug("No dma address for sg %p\n",
sg);
ret = -EINVAL;
goto fail;
}
}
continue;
}
@ -552,12 +546,6 @@ int msm_iommu_pagetable_map_range(struct iommu_pt *pt, unsigned int va,
chunk_offset = 0;
sg = sg_next(sg);
pa = get_phys_addr(sg);
if (pa == 0) {
pr_debug("No dma address for sg %p\n",
sg);
ret = -EINVAL;
goto fail;
}
}
}