Skip to content

Commit

Permalink
mailbox: imx: populate sub-nodes
Browse files Browse the repository at this point in the history
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 <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
  • Loading branch information
Peng Fan authored and Jassi Brar committed Mar 11, 2024
1 parent 81f91d6 commit 2a0ac45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mailbox/imx-mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/mailbox_controller.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/suspend.h>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2a0ac45

Please sign in to comment.