projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05afde1
)
dmaengine: sh: rcar-dmac: Use device_iommu_mapped()
author
Joerg Roedel
<jroedel@suse.de>
Fri, 30 Nov 2018 13:29:01 +0000
(14:29 +0100)
committer
Joerg Roedel
<jroedel@suse.de>
Mon, 17 Dec 2018 11:47:49 +0000
(12:47 +0100)
Use Use device_iommu_mapped() to check if the device is
already mapped by an IOMMU.
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/dma/sh/rcar-dmac.c
patch
|
blob
|
history
diff --git
a/drivers/dma/sh/rcar-dmac.c
b/drivers/dma/sh/rcar-dmac.c
index
74fa2b1
..
2b4f256
100644
(file)
--- 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;
}