]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/ipmmu-vmsa: Write IMCTR twice
authorMagnus Damm <damm+renesas@opensource.se>
Mon, 16 Oct 2017 12:30:18 +0000 (21:30 +0900)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 6 Nov 2017 17:29:39 +0000 (10:29 -0700)
commit079f4dd282cc7e28c1cbb6057a9bd49e6ea137f7
treea3f7280771139668021b51b0c6a18f67dfb5671a
parent0cc9bd877c44732698b593625430aa984844819d
iommu/ipmmu-vmsa: Write IMCTR twice

Write IMCTR both in the root device and the leaf node.

To allow access of IMCTR introduce the following function:
 - ipmmu_ctx_write_all()

While at it also rename context functions:
 - ipmmu_ctx_read() -> ipmmu_ctx_read_root()
 - ipmmu_ctx_write() -> ipmmu_ctx_write_root()

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/ipmmu-vmsa.c