mailbox: qcom-apcs-ipc: Assign OF node to clock controller child device
authorStephan Gerhold <stephan.gerhold@linaro.org>
Tue, 6 May 2025 13:10:09 +0000 (15:10 +0200)
committerJassi Brar <jassisinghbrar@gmail.com>
Thu, 29 May 2025 15:01:35 +0000 (10:01 -0500)
commitd0b497df02e9b2ebcb5771c7b16e424c0614a366
tree9de8ff84002e17fb5501a8042c04e2e3a6893bff
parentc3c51387141db549c96db2fd4b8161fa0b4d7301
mailbox: qcom-apcs-ipc: Assign OF node to clock controller child device

Currently, the child device for the clock controller inside the APCS block
is created without any OF node assigned, so the drivers need to rely on the
parent device for obtaining any resources.

Add support for defining the clock controller inside a "clock-controller"
subnode to break up circular dependencies between the mailbox and required
parent clocks of the clock controller. For backwards compatibility, if the
subnode is not defined, reuse the OF node from the parent device.

Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/qcom-apcs-ipc-mailbox.c