Michael Riesch 7eb99841f3 iommu/rockchip: fix permission bits in page table entries v2
As pointed out in the corresponding downstream fix [0], the permission bits
of the page table entries are compatible between v1 and v2 of the IOMMU.
This is in contrast to the current mainline code that incorrectly assumes
that the read and write permission bits are switched. Fix the permission
bits by reusing the v1 bit defines.

[0] e3bc123a22

Fixes: c55356c534aa ("iommu: rockchip: Add support for iommu v2")
Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20221102063553.2464161-1-michael.riesch@wolfvision.net
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2022-11-03 15:58:41 +01:00
..
2022-09-09 09:26:22 +02:00
2022-09-09 09:26:22 +02:00
2021-04-07 10:54:29 +02:00
2022-09-07 14:26:17 +02:00
2022-09-07 14:26:17 +02:00
2022-09-07 14:26:17 +02:00
2022-09-07 14:26:17 +02:00