1 From fa78b693940b9da1878353de758b2b6f69169b3a Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 21 Jul 2020 17:34:09 +0100
4 Subject: [PATCH] staging: vchiq_arm: children inherit DMA config
6 Although it is no longer necessary for vchiq's children to have a
7 different DMA configuration to the parent, they do still need to
8 explicitly to have their DMA configuration set - to be that of the
11 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 10 ++++++++++
14 1 file changed, 10 insertions(+)
16 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
17 +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
18 @@ -1863,8 +1863,18 @@ vchiq_register_child(struct platform_dev
20 child->dev.of_node = np;
23 + * We want the dma-ranges etc to be copied from the parent VCHIQ device
24 + * to be passed on to the children without a node of their own.
27 + np = pdev->dev.of_node;
29 of_dma_configure(&child->dev, np, true);
31 + if (np != pdev->dev.of_node)