From mboxrd@z Thu Jan 1 00:00:00 1970 From: pavel@denx.de (Pavel Machek) Date: Thu, 2 May 2019 23:27:31 +0200 Subject: [cip-dev] [PATCH 4.19.y 02/29] iommu/ipmmu-vmsa: Modify ipmmu_slave_whitelist() to check SoC revisions In-Reply-To: <1556706143-11898-3-git-send-email-fabrizio.castro@bp.renesas.com> References: <1556706143-11898-1-git-send-email-fabrizio.castro@bp.renesas.com> <1556706143-11898-3-git-send-email-fabrizio.castro@bp.renesas.com> Message-ID: <20190502212731.GB19728@amd> To: cip-dev@lists.cip-project.org List-Id: cip-dev.lists.cip-project.org Hi! > commit b7ee92c6ff0e023a473b2500d771f6bf504fcc1a upstream. > > Some R-Car Gen3 SoCs has hardware restrictions on the IPMMU. So, > to check whether this R-Car Gen3 SoC can use the IPMMU correctly, > this patch modifies the ipmmu_slave_whitelist(). > > Signed-off-by: Yoshihiro Shimoda > Reviewed-by: Geert Uytterhoeven > Reviewed-by: Simon Horman > Signed-off-by: Joerg Roedel > Signed-off-by: Fabrizio Castro > --- > drivers/iommu/ipmmu-vmsa.c | 34 ++++++++++++++++++++++++++-------- > 1 file changed, 26 insertions(+), 8 deletions(-) > > static int ipmmu_of_xlate(struct device *dev, > struct of_phandle_args *spec) > { > - /* For R-Car Gen3 use a white list to opt-in slave devices */ > - if (soc_device_match(soc_rcar_gen3) && !ipmmu_slave_whitelist(dev)) > + if (!ipmmu_slave_whitelist(dev)) > return -ENODEV; > I just want to make sure "soc_device_match(soc_rcar_gen3) &&" deletion is intentional here... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: