mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
UPSTREAM: 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> (cherry picked from commit c60bf3eb888a362100aa1bdbea351dab681e262a) Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: Ib28a7baf7f2fd40603b5e89d256fd8a476fc89a8
This commit is contained in:
parent
b85b00a90a
commit
8ae7041d78
1 changed files with 1 additions and 1 deletions
|
|
@ -1022,7 +1022,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue