Re: [PATCH] iommu/amd: Set AMD iommu callbacks for platform bus driver
On Mon, May 09, 2016 at 08:17:12PM +0800, Wan Zongshun wrote: > Currently, Only New eMMC driver will rely on this sdhci-acpi.c, but > I could not find a suitable ifdef XXX micro to limit this > platform_bus_type here like AMBA bus type before. > > Do you think this MMC_SDHCI_ACPI is ok? Okay, looks like platform_bus_type does not depend on any config-symbol. So the patch is fine, but please add a comment why the iommu-ops are needed on the platform bus. Joerg ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu
Re: [PATCH] iommu/amd: Set AMD iommu callbacks for platform bus driver
On Thu, Apr 14, 2016 at 09:28:53AM -0400, Wan Zongshun wrote: > From: Wan Zongshun> > AMD has more drivers will use ACPI to platform bus driver later, > all those devices need iommu support, such as eMMC acpi driver. > > Signed-off-by: Wan Zongshun > --- > drivers/iommu/amd_iommu.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c > index c430c10..547cdd4 100644 > --- a/drivers/iommu/amd_iommu.c > +++ b/drivers/iommu/amd_iommu.c > @@ -21,6 +21,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -2980,6 +2981,9 @@ int __init amd_iommu_init_api(void) > if (err) > return err; > #endif > + err = bus_set_iommu(_bus_type, _iommu_ops); > + if (err) > + return err; Is the platform_bus_type always defined or does this code needs to be guarded by another ifdef? Joerg ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu
[PATCH] iommu/amd: Set AMD iommu callbacks for platform bus driver
From: Wan ZongshunAMD has more drivers will use ACPI to platform bus driver later, all those devices need iommu support, such as eMMC acpi driver. Signed-off-by: Wan Zongshun --- drivers/iommu/amd_iommu.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index c430c10..547cdd4 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -2980,6 +2981,9 @@ int __init amd_iommu_init_api(void) if (err) return err; #endif + err = bus_set_iommu(_bus_type, _iommu_ops); + if (err) + return err; return 0; } -- 1.9.1 ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu