iommu/ipmmu-vmsa: Add an array of slave devices whitelist
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 28 Nov 2018 09:23:36 +0000 (09:23 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Dec 2018 13:24:02 +0000 (14:24 +0100)
commit807596491d33d016e420d217cf1350aef2d2b3f7
tree6dab39610cf9d15ae7870f9039e35f5fc16672dd
parentb7ee92c6ff0e023a473b2500d771f6bf504fcc1a
iommu/ipmmu-vmsa: Add an array of slave devices whitelist

To avoid adding copy and pasted strcmp codes in the future,
this patch adds an array "rcar_gen3_slave_whitelist" to check
whether the device can work with the IPMMU or not.

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