]> git.baikalelectronics.ru Git - kernel.git/commit
sparc/iommu: use sbus_iommu_unmap_page in sbus_iommu_unmap_sg
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Apr 2019 18:23:40 +0000 (20:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 00:11:56 +0000 (17:11 -0700)
commit96a51a8a3fd460b44f1709737ee5c99760391c5c
treee8463d0235f1040f6e25c57e50f73c129335bce9
parentbbe61d77f1aa70c628b1a178adf47b0864993c74
sparc/iommu: use sbus_iommu_unmap_page in sbus_iommu_unmap_sg

Use the page-level helper instead of duplicating the logic, while also
fixing the incorrect handling of larger than page sized offsets in
the sg variant.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/iommu.c