提交 fdc51415 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

staging: vchiq_arm: children inherit DMA config

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

Although it is no longer necessary for vchiq's children to have a
different DMA configuration to the parent, they do still need to
explicitly to have their DMA configuration set - to be that of the
parent.
Signed-off-by: NPhil Elwell <phil@raspberrypi.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 f8aa656c
...@@ -2718,8 +2718,18 @@ vchiq_register_child(struct platform_device *pdev, const char *name) ...@@ -2718,8 +2718,18 @@ vchiq_register_child(struct platform_device *pdev, const char *name)
child->dev.of_node = np; child->dev.of_node = np;
/*
* We want the dma-ranges etc to be copied from the parent VCHIQ device
* to be passed on to the children without a node of their own.
*/
if (!np)
np = pdev->dev.of_node;
of_dma_configure(&child->dev, np, true); of_dma_configure(&child->dev, np, true);
if (np != pdev->dev.of_node)
of_node_put(np);
return child; return child;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册