Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dma-mapping: Set arm_dma_set_mask() for iommu->set_dma_mask()

struct dma_map_ops iommu_ops doesn't have ->set_dma_mask, which causes
crash when dma_set_mask() is called from some driver.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

authored by

Hiroshi Doyu and committed by
Marek Szyprowski
d09e1333 3e3a1823

+4
+4
arch/arm/mm/dma-mapping.c
··· 1732 1732 .unmap_sg = arm_iommu_unmap_sg, 1733 1733 .sync_sg_for_cpu = arm_iommu_sync_sg_for_cpu, 1734 1734 .sync_sg_for_device = arm_iommu_sync_sg_for_device, 1735 + 1736 + .set_dma_mask = arm_dma_set_mask, 1735 1737 }; 1736 1738 1737 1739 struct dma_map_ops iommu_coherent_ops = { ··· 1747 1745 1748 1746 .map_sg = arm_coherent_iommu_map_sg, 1749 1747 .unmap_sg = arm_coherent_iommu_unmap_sg, 1748 + 1749 + .set_dma_mask = arm_dma_set_mask, 1750 1750 }; 1751 1751 1752 1752 /**