power: regulator: scmi: Move regulator subnode hack to scmi_regulator
authorMarek Vasut <marex@denx.de>
Sat, 22 Mar 2025 01:44:40 +0000 (02:44 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 23 Apr 2025 03:28:12 +0000 (11:28 +0800)
commit2a8e7ea4f948e3de7033b297fd827fe082cd63da
tree4c0e030520805ec377163b1f3d96eb1696adfc39
parent991c9530fc0d52229e6196f6be2dd6e1ef17857c
power: regulator: scmi: Move regulator subnode hack to scmi_regulator

The current code attempts to bind scmi_voltage_domain to regulator subnode
of the SCMI protocol node, so scmi_voltage_domain can then bind regulators
directly to subnodes of its node. This kind of behavior should not be in
core code, move it into scmi_voltage_domain driver code. Let the driver
descend into regulator node and bind regulators to its subnodes.

Fixes: 1f213ee4dbf2 ("firmware: scmi: voltage regulator")
Signed-off-by: Marek Vasut <marex@denx.de>
[Alice Guo: Fix scmi_regulator_bind]
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/firmware/scmi/scmi_agent-uclass.c
drivers/power/regulator/scmi_regulator.c