iommu/exynos: Make driver independent of the system page size
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 23 Jun 2022 09:36:29 +0000 (11:36 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 6 Jul 2022 10:57:55 +0000 (12:57 +0200)
commit32977242f80e343e2247f77e53fe20e8f7c23938
tree87f367d40584422df358c2be885162974fb0fe05
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e
iommu/exynos: Make driver independent of the system page size

PAGE_{SIZE,SHIFT} macros depend on the configured kernel's page size, but
the driver expects values calculated as for 4KB pages. Fix this.

Reported-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220623093629.32178-1-m.szyprowski@samsung.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/exynos-iommu.c