From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BDE53115BD for ; Tue, 2 Dec 2025 13:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764681706; cv=none; b=kVvYnZQYrYtFnq8pazJ9g2JQ5YvINnJ08J7Vw8N0YLh5jATSZlFbedH17umxCqtxfyE0a9KtnIj8PSfyOVb8CdkHMwejDmKeDVFqJF7+of3Q6DG3loKoQXu4vWTmDuvlV4ts6zhrcwfvAChW8QwJzCAcDGzKBVrGjf1XQ9s3vRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764681706; c=relaxed/simple; bh=PK0hMrcQU8kVrCD+4HsqTvltkXN1ig5I/hLNOTkAYRs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Yq//itIwRsVrmfscO3Yu7TJ6S1P3rMhZ5D305yieyLxks+fKkRRUOLKJMeZS49QC5/0WC9ZVRNYZOdsEmOpgydyGDULacAtSIzM9h4TfhZWqNVoFoU2lBGl2SSNpAAB+fS43ISpNNum2HglZJs1HTAOTBrosN3L4YDpcQo0vdR8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vQQJu-0003pJ-RM; Tue, 02 Dec 2025 14:21:30 +0100 From: Marco Felsch Date: Tue, 02 Dec 2025 14:21:04 +0100 Subject: [PATCH v2 3/3] pmdomain: imx93-blk-ctrl: add support for optional subnodes Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251202-v6-18-topic-imx93-blkctrl-v2-3-e73501034adc@pengutronix.de> References: <20251202-v6-18-topic-imx93-blkctrl-v2-0-e73501034adc@pengutronix.de> In-Reply-To: <20251202-v6-18-topic-imx93-blkctrl-v2-0-e73501034adc@pengutronix.de> To: Ulf Hansson , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-pm@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexander Stein , Frank Li , Marco Felsch X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-pm@vger.kernel.org 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 --- 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 49610f2389c3bbaf4de4133918fbcacb7924f672..1afc78b034fad8fa09a3e8527586387156fc2543 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; } -- 2.47.3