* [PATCH] of/platform: teardown DMA mappings on device destruction
@ 2015-01-16 17:04 Will Deacon
2015-01-21 23:14 ` Olof Johansson
0 siblings, 1 reply; 2+ messages in thread
From: Will Deacon @ 2015-01-16 17:04 UTC (permalink / raw)
To: linux-arm-kernel
Now that we can create and attach to IOMMU domains via of_dma_configure,
make sure we give the architecture a chance to tear them down when a
platform or amba device is destroyed.
Acked-by: Rob Herring <robh@kernel.org>
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
---
Arnd, could you queue this along with the other of_dma_* bits that you
have please?
drivers/of/platform.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 5b33c6a21807..3f61d668ded7 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -526,6 +526,7 @@ static int of_platform_device_destroy(struct device *dev, void *data)
amba_device_unregister(to_amba_device(dev));
#endif
+ of_dma_deconfigure(dev);
of_node_clear_flag(dev->of_node, OF_POPULATED);
of_node_clear_flag(dev->of_node, OF_POPULATED_BUS);
return 0;
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] of/platform: teardown DMA mappings on device destruction
2015-01-16 17:04 [PATCH] of/platform: teardown DMA mappings on device destruction Will Deacon
@ 2015-01-21 23:14 ` Olof Johansson
0 siblings, 0 replies; 2+ messages in thread
From: Olof Johansson @ 2015-01-21 23:14 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jan 16, 2015 at 05:04:56PM +0000, Will Deacon wrote:
> Now that we can create and attach to IOMMU domains via of_dma_configure,
> make sure we give the architecture a chance to tear them down when a
> platform or amba device is destroyed.
>
> Acked-by: Rob Herring <robh@kernel.org>
> Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
> ---
>
> Arnd, could you queue this along with the other of_dma_* bits that you
> have please?
I'm not sure what those pieces are, but I've queued this in next/drivers.
-Olof
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-21 23:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 17:04 [PATCH] of/platform: teardown DMA mappings on device destruction Will Deacon
2015-01-21 23:14 ` Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).