iommu: Don't use sme_active() in generic code
authorJoerg Roedel <jroedel@suse.de>
Tue, 3 Sep 2019 13:15:44 +0000 (15:15 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 3 Sep 2019 13:15:44 +0000 (15:15 +0200)
commit2896ba40d0becdb72b45f096cad70633abc014f6
treea485e7f3917e7ded7f48d037a129d9dabedb9515
parentd127bc9be856098cc2410c1266ed64e258bc5377
iommu: Don't use sme_active() in generic code

Switch to the generic function mem_encrypt_active() because
sme_active() is x86 specific and can't be called from
generic code on other platforms than x86.

Fixes: 2cc13bb4f59f ("iommu: Disable passthrough mode when SME is active")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c