* [6/6] dmaengine: sh: rcar-dmac: 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>
Use Use device_iommu_mapped() to check if the device is
already mapped by an IOMMU.
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
---
drivers/dma/sh/rcar-dmac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c
index 74fa2b1a6a86..2b4f25698169 100644
--- a/drivers/dma/sh/rcar-dmac.c
+++ b/drivers/dma/sh/rcar-dmac.c
@@ -1809,7 +1809,7 @@ static int rcar_dmac_probe(struct platform_device *pdev)
* level we can't disable it selectively, so ignore channel 0 for now if
* the device is part of an IOMMU group.
*/
- if (pdev->dev.iommu_group) {
+ if (device_iommu_mapped(&pdev->dev)) {
dmac->n_channels--;
channels_offset = 1;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [6/6] dmaengine: sh: rcar-dmac: Use device_iommu_mapped()
@ 2018-12-17 6:11 Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2018-12-17 6:11 UTC (permalink / raw)
To: Joerg Roedel
Cc: iommu, Russell Currey, Sam Bobroff, oohall,
Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
Lorenzo Pieralisi, Hanjun Guo, Sudeep Holla, Dan Williams,
jroedel, Mathias Nyman, Greg Kroah-Hartman, linux-kernel,
linux-acpi, dmaengine, linux-usb
On 11-12-18, 14:43, Joerg Roedel wrote:
> From: Joerg Roedel <jroedel@suse.de>
>
> Use Use device_iommu_mapped() to check if the device is
> already mapped by an IOMMU.
Acked-by: Vinod Koul <vkoul@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-17 6:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-17 6:11 [6/6] dmaengine: sh: rcar-dmac: Use device_iommu_mapped() Vinod Koul
-- strict thread matches above, loose matches on Subject: below --
2018-12-11 13:43 Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox