of: address: Follow DMA parent for "dma-coherent"
authorRobin Murphy <robin.murphy@arm.com>
Wed, 3 Jul 2019 13:47:31 +0000 (14:47 +0100)
committerRob Herring <robh@kernel.org>
Tue, 8 Oct 2019 18:50:22 +0000 (13:50 -0500)
Much like for address translation, when checking for DMA coherence we
should be sure to walk up the DMA hierarchy, rather than the MMIO one,
now that we can accommodate them being different.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c

index e9188c82fdae7c8079b8777d8b91ebf32c35d553..3fd34f7ad772112998d809e0d23cd63316c20552 100644 (file)
@@ -999,7 +999,7 @@ bool of_dma_is_coherent(struct device_node *np)
                        of_node_put(node);
                        return true;
                }
-               node = of_get_next_parent(node);
+               node = of_get_next_dma_parent(node);
        }
        of_node_put(node);
        return false;