lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 27 Feb 2020 12:05:42 +0200 From: laurentiu.tudor@....com To: linux-kernel@...r.kernel.org, iommu@...ts.linux-foundation.org, linux-arm-kernel@...ts.infradead.org, linux-acpi@...r.kernel.org Cc: robin.murphy@....com, lorenzo.pieralisi@....com, ard.biesheuvel@...aro.org, ioana.ciornei@....com, diana.craciun@....nxp.com, maz@...nel.org, jon@...id-run.com, pankaj.bansal@....com, makarand.pawagi@....com, calvin.johnson@....com, V.Sethi@....com, cristian.sovaiala@....com, Stuart.Yoder@....com, jeremy.linton@....com, joro@...tes.org, tglx@...utronix.de, jason@...edaemon.net, Laurentiu Tudor <laurentiu.tudor@....com> Subject: [RFC PATCH 4/4] iommu/of: get rid of fsl-mc specific code From: Laurentiu Tudor <laurentiu.tudor@....com> Changing the way we configure dma for fsl-mc devices allows us to get rid of our fsl-mc specific code in the generic of iommu code. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@....com> --- drivers/iommu/of_iommu.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index 20738aacac89..332072ada474 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -15,7 +15,6 @@ #include <linux/of_pci.h> #include <linux/pci.h> #include <linux/slab.h> -#include <linux/fsl/mc.h> #define NO_IOMMU 1 @@ -139,23 +138,6 @@ static int of_pci_iommu_init(struct pci_dev *pdev, u16 alias, void *data) return err; } -static int of_fsl_mc_iommu_init(struct fsl_mc_device *mc_dev, - struct device_node *master_np) -{ - struct of_phandle_args iommu_spec = { .args_count = 1 }; - int err; - - err = of_map_rid(master_np, mc_dev->icid, "iommu-map", - "iommu-map-mask", &iommu_spec.np, - iommu_spec.args); - if (err) - return err == -ENODEV ? NO_IOMMU : err; - - err = of_iommu_xlate(&mc_dev->dev, &iommu_spec); - of_node_put(iommu_spec.np); - return err; -} - const struct iommu_ops *of_iommu_configure(struct device *dev, struct device_node *master_np) { @@ -188,8 +170,6 @@ const struct iommu_ops *of_iommu_configure(struct device *dev, pci_request_acs(); err = pci_for_each_dma_alias(to_pci_dev(dev), of_pci_iommu_init, &info); - } else if (dev_is_fsl_mc(dev)) { - err = of_fsl_mc_iommu_init(to_fsl_mc_device(dev), master_np); } else { struct of_phandle_args iommu_spec; int idx = 0; -- 2.17.1
Powered by blists - more mailing lists