]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/rockchip: Add map_sg callback for rk_iommu_ops
authorSimon Xue <xxm@rock-chips.com>
Fri, 24 Jun 2016 02:13:27 +0000 (10:13 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 Jun 2016 12:50:08 +0000 (14:50 +0200)
commite6d0f4737c468d1889aba06801c490988cf66ad7
treed34a08795658657bec9b533fa376e46982bfa9d9
parentfec3b217ff19978650121103d849b5889b04780a
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 <xxm@rock-chips.com>
Signed-off-by: Shunqian Zheng <xxm@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c