diff mbox series

[v2,1/5] interconnect: qcom: icc-rpmh: Support child NoC device probe

Message ID 20220520070318.48521-2-luca.weiss@fairphone.com (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series Add interconnect support for SM6350 | expand

Commit Message

Luca Weiss May 20, 2022, 7:03 a.m. UTC
As per e39bf2972c6e ("interconnect: icc-rpm: Support child NoC device
probe") also update the rpmh interconnect driver to support probing NoCs
that are modelled as child devices of a different NoC.

As the driver doesn't yet use the 'reg' property, no change is done for

Downstream DT reference:

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Changes since v1:
* none

 drivers/interconnect/qcom/icc-rpmh.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series


diff --git a/drivers/interconnect/qcom/icc-rpmh.c b/drivers/interconnect/qcom/icc-rpmh.c
index 3c40076eb5fb..8acc8e67a332 100644
--- a/drivers/interconnect/qcom/icc-rpmh.c
+++ b/drivers/interconnect/qcom/icc-rpmh.c
@@ -258,6 +258,10 @@  int qcom_icc_rpmh_probe(struct platform_device *pdev)
 	data->num_nodes = num_nodes;
 	platform_set_drvdata(pdev, qp);
+	/* Populate child NoC devices if any */
+	if (of_get_child_count(dev->of_node) > 0)
+		return of_platform_populate(dev->of_node, NULL, NULL, dev);
 	return 0;