]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 6 Nov 2019 02:35:48 +0000 (11:35 +0900)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Nov 2019 14:06:20 +0000 (15:06 +0100)
commitabe6d9a13fa751ee2bafcf87d5697594c146221a
tree4d26e759c1385cb54c7087681596901856c6ad11
parent96b1c84c56e28fc849d8df2f44279da3da1cb172
iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro

Since we will have changed memory mapping of the IPMMU in the future,
this patch uses ipmmu_features values instead of a macro to
calculate context registers offset. No behavior change.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c