DMA Engine development
 help / color / mirror / Atom feed
* [3/6] ACPI/IORT: Use device_iommu_mapped()
@ 2018-12-11 13:43 Joerg Roedel
  0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2018-12-11 13:43 UTC (permalink / raw)
  To: iommu
  Cc: Russell Currey, Sam Bobroff, oohall, Benjamin Herrenschmidt,
	Paul Mackerras, Michael Ellerman, Lorenzo Pieralisi, Hanjun Guo,
	Sudeep Holla, Dan Williams, Vinod Koul, Joerg Roedel, jroedel,
	Mathias Nyman, Greg Kroah-Hartman, linux-kernel, linux-acpi,
	dmaengine, linux-usb

From: Joerg Roedel <jroedel@suse.de>

Replace the iommu-check with a proper and readable function
call.

Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
---
 drivers/acpi/arm64/iort.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index 70f4e80b9246..0125c8eb9e81 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -805,7 +805,7 @@ static inline int iort_add_device_replay(const struct iommu_ops *ops,
 {
 	int err = 0;
 
-	if (ops->add_device && dev->bus && !dev->iommu_group)
+	if (ops->add_device && dev->bus && !device_iommu_mapped(dev))
 		err = ops->add_device(dev);
 
 	return err;

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [3/6] ACPI/IORT: Use device_iommu_mapped()
@ 2018-12-17  9:21 Hanjun Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Hanjun Guo @ 2018-12-17  9:21 UTC (permalink / raw)
  To: Joerg Roedel, iommu
  Cc: Russell Currey, Sam Bobroff, oohall, Benjamin Herrenschmidt,
	Paul Mackerras, Michael Ellerman, Lorenzo Pieralisi, Hanjun Guo,
	Sudeep Holla, Dan Williams, Vinod Koul, jroedel, Mathias Nyman,
	Greg Kroah-Hartman, linux-kernel, linux-acpi, dmaengine,
	linux-usb

On 2018/12/11 21:43, Joerg Roedel wrote:
> From: Joerg Roedel <jroedel@suse.de>
> 
> Replace the iommu-check with a proper and readable function
> call.
> 
> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Acked-by: Robin Murphy <robin.murphy@arm.com>
> Signed-off-by: Joerg Roedel <jroedel@suse.de>

Acked-by: Hanjun Guo <hanjun.guo@linaro.org>

Thanks
Hanjun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-17  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-11 13:43 [3/6] ACPI/IORT: Use device_iommu_mapped() Joerg Roedel
  -- strict thread matches above, loose matches on Subject: below --
2018-12-17  9:21 Hanjun Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox