From 6cc5a233293a8de47a9f754c6cd70c7fa25e0312 Mon Sep 17 00:00:00 2001 From: Marco Felsch Date: Mon, 15 Dec 2025 20:18:27 +0100 Subject: [PATCH] pmdomain: imx93-blk-ctrl: add support for optional subnodes This particular block can have DT subnodes describing the LVDS LDB, MIPI DSI and parallel DPI bridge. Scan for possible sub-devices within the driver, instead of misusing the simple-bus to perform the scan. Reviewed-by: Alexander Stein Reviewed-by: Frank Li Signed-off-by: Marco Felsch Signed-off-by: Ulf Hansson --- drivers/pmdomain/imx/imx93-blk-ctrl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pmdomain/imx/imx93-blk-ctrl.c b/drivers/pmdomain/imx/imx93-blk-ctrl.c index 49610f2389c3..1afc78b034fa 100644 --- a/drivers/pmdomain/imx/imx93-blk-ctrl.c +++ b/drivers/pmdomain/imx/imx93-blk-ctrl.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -313,6 +314,10 @@ static int imx93_blk_ctrl_probe(struct platform_device *pdev) if (ret) return dev_err_probe(dev, ret, "failed to add genpd_provider release callback\n"); + ret = devm_of_platform_populate(dev); + if (ret) + return dev_err_probe(dev, ret, "failed to populate blk-ctrl sub-devices\n"); + return 0; }