]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu/ipmmu-vmsa: Move num_utlbs to SoC-specific features
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 May 2019 11:52:51 +0000 (13:52 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Jun 2019 10:18:03 +0000 (12:18 +0200)
commitb7f3f047aea47d82aeb251fb38a694e6d890d139
treee0046061ec5ba7a4fbe48f330e00fdcb6934ec34
parentb43e0d8a458cf267c98f914a4e0a4cafe2e8fd76
iommu/ipmmu-vmsa: Move num_utlbs to SoC-specific features

The maximum number of micro-TLBs per IPMMU instance is not fixed, but
depends on the SoC type.  Hence move it from struct ipmmu_vmsa_device to
struct ipmmu_features, and set up the correct value for both R-Car Gen2
and Gen3 SoCs.

Note that currently no code uses this value.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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