提交 dd0c2d01 编写于 作者: D Dave Stevenson 提交者: Zheng Zengkai

staging: vchiq_arm: Set up dma ranges on child devices

raspberrypi inclusion
category: feature
bugzilla: 50432

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

The VCHIQ driver now loads the audio, camera, codec, and vc-sm
drivers as platform drivers. However they were not being given
the correct DMA configuration.

Call of_dma_configure with the parent (VCHIQ) parameters to be
inherited by the child.
Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 1080bc3d
...@@ -2708,6 +2708,12 @@ vchiq_register_child(struct platform_device *pdev, const char *name) ...@@ -2708,6 +2708,12 @@ vchiq_register_child(struct platform_device *pdev, const char *name)
child = NULL; child = NULL;
} }
/*
* We want the dma-ranges etc to be copied from the parent VCHIQ device
* to be passed on to the children too.
*/
of_dma_configure(&new_dev->dev, pdev->dev.of_node, true);
return child; return child;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册