]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu/ipmmu-vmsa: Extract hardware context initialization
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 May 2019 11:52:52 +0000 (13:52 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Jun 2019 10:18:03 +0000 (12:18 +0200)
commit892db541cc68eb39d7813af34f33ce74a0014a1d
tree0f690a344dff6e66351988cb9a46abe109c310ca
parentb7f3f047aea47d82aeb251fb38a694e6d890d139
iommu/ipmmu-vmsa: Extract hardware context initialization

ipmmu_domain_init_context() takes care of (1) initializing the software
domain, and (2) initializing the hardware context for the domain.

Extract the code to initialize the hardware context into a new subroutine
ipmmu_domain_setup_context(), to prepare for later reuse.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c