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

Skip to content
Commit 72842261 authored by Jeremy Gebben's avatar Jeremy Gebben Committed by Stephen Boyd
Browse files

msm: iommu: use sg_dma_address() in iommu_map_range()



Ion carveout and content protect buffers do not have
a struct page and thus sg_phys() cannot be used on them.
Try sg_dma_address() first and if it returns 0 then
use sg_phys().

Change-Id: I95ccb8f5a3c86cd09ecf2a2737c260f4996059ac
Signed-off-by: default avatarJeremy Gebben <jgebben@codeaurora.org>
parent 2519f559
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment