wireguard: bump to 1.0.20200330
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0442-of-address-Follow-DMA-parent-for-dma-coherent.patch
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"
5
6 commit c60bf3eb888a362100aa1bdbea351dab681e262a upstream.
7
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.
11
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>
16 ---
17 drivers/of/address.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/drivers/of/address.c
21 +++ b/drivers/of/address.c
22 @@ -1023,7 +1023,7 @@ bool of_dma_is_coherent(struct device_no
23 of_node_put(node);
24 return true;
25 }
26 - node = of_get_next_parent(node);
27 + node = of_get_next_dma_parent(node);
28 }
29 of_node_put(node);
30 return false;