Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

interconnect: qcom: icc-rpmh: Support child NoC device probe

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
that.

Downstream DT reference:
https://android.googlesource.com/kernel/msm-extra/devicetree/+/refs/tags/android-11.0.0_r0.56/qcom/lagoon-bus.dtsi

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20220525144404.200390-2-luca.weiss@fairphone.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Luca Weiss and committed by
Georgi Djakov
57eb1477 f2906aa8

+4
+4
drivers/interconnect/qcom/icc-rpmh.c
··· 258 258 data->num_nodes = num_nodes; 259 259 platform_set_drvdata(pdev, qp); 260 260 261 + /* Populate child NoC devices if any */ 262 + if (of_get_child_count(dev->of_node) > 0) 263 + return of_platform_populate(dev->of_node, NULL, NULL, dev); 264 + 261 265 return 0; 262 266 err: 263 267 icc_nodes_remove(provider);