mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
iommu/rockchip: Add map_sg callback for rk_iommu_ops
The iommu_dma_alloc() in iommu/dma-iommu.c calls iommu_map_sg() that requires the callback iommu_ops .map_sg(). Adding the default_iommu_map_sg() to Rockchip IOMMU accordingly. Signed-off-by: Simon Xue <[email protected]> Signed-off-by: Shunqian Zheng <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Tomasz Figa <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
fec3b217ff
commit
e6d0f4737c
1 changed files with 1 additions and 0 deletions
|
|
@ -1022,6 +1022,7 @@ static const struct iommu_ops rk_iommu_ops = {
|
|||
.detach_dev = rk_iommu_detach_device,
|
||||
.map = rk_iommu_map,
|
||||
.unmap = rk_iommu_unmap,
|
||||
.map_sg = default_iommu_map_sg,
|
||||
.add_device = rk_iommu_add_device,
|
||||
.remove_device = rk_iommu_remove_device,
|
||||
.iova_to_phys = rk_iommu_iova_to_phys,
|
||||
|
|
|
|||
Loading…
Reference in a new issue