of: address: Follow DMA parent for "dma-coherent"

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>
This commit is contained in:
Robin Murphy 2019-07-03 14:47:31 +01:00 коммит произвёл Rob Herring
Родитель 862ab5578f
Коммит c60bf3eb88
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;