From: Peng Fan Date: Mon, 19 Feb 2024 05:22:39 +0000 (+0800) Subject: mailbox: imx: populate sub-nodes X-Git-Tag: microblaze-v6.10~137^2~1 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=2a0ac450128bc4a8562e0606bb4b9f8eff11911f;p=linux-2.6-microblaze.git mailbox: imx: populate sub-nodes Some MUs such as i.MX95 MU, have internal SRAM which could be used for SCMI shared memory, so populate the sub-nodes to use the SRAM. Signed-off-by: Peng Fan Signed-off-by: Jassi Brar --- diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 306af1880415..b36267591db2 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -920,6 +921,8 @@ static int imx_mu_probe(struct platform_device *pdev) if (ret) goto disable_clk; + of_platform_populate(dev->of_node, NULL, NULL, dev); + pm_runtime_enable(dev); ret = pm_runtime_resume_and_get(dev);