1 From e4a649779ff6857240fe691cdf147a3b4896e71b Mon Sep 17 00:00:00 2001
2 From: Robin Murphy <robin.murphy@arm.com>
3 Date: Wed, 3 Jul 2019 14:47:31 +0100
4 Subject: [PATCH] of: address: Follow DMA parent for "dma-coherent"
6 commit c60bf3eb888a362100aa1bdbea351dab681e262a upstream.
8 Much like for address translation, when checking for DMA coherence we
9 should be sure to walk up the DMA hierarchy, rather than the MMIO one,
10 now that we can accommodate them being different.
12 Signed-off-by: Robin Murphy <robin.murphy@arm.com>
13 Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
14 Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
15 Signed-off-by: Rob Herring <robh@kernel.org>
17 drivers/of/address.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 --- a/drivers/of/address.c
21 +++ b/drivers/of/address.c
22 @@ -1025,7 +1025,7 @@ bool of_dma_is_coherent(struct device_no
26 - node = of_get_next_parent(node);
27 + node = of_get_next_dma_parent(node);