From patchwork Fri Oct 20 13:00:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13430671 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CB9AC001DF for ; Fri, 20 Oct 2023 13:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HrCAkQWnvuU3nf97fthJklfMkS9XZgISwYNM+8W6szI=; b=SUVv7I8hq0jmQT +VT7o6Ac2Rp9jXJ8Sc5XaPrtTrGROJcMl6AlxBqx/ephrVMgG5Mk2Iw0AqxtD/rsM8ju8HaSqh4bd A4VJWMYhFRozC/3dauxOsHnrcXNDCUo8fxA3vw6SD0B90tTXXs9keFIQzdxh7vGBFF6/fn9sejM+9 sJOf4KCpmQiMYLdcucWz7+tPCCrQzIVB/TGWilj8e+j8Xq7j5+16o09V3oC2Vo8XA65CPNio5ax0o vJMyCsY54tDXaCIXXU/mNsGwJN/+o8rSxjR8eO/PzR41wgxijWjZM6wasHN3M1p5TQZHi2HAeu3Go BHwGdKD027nu95FUCZ9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7G-002Ic4-19; Fri, 20 Oct 2023 13:00:38 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7C-002IZ1-37 for linux-arm-kernel@lists.infradead.org; Fri, 20 Oct 2023 13:00:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1697806835; x=1729342835; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=A4GXrDNHTGMFmp07G5G0Ww5OP+EEWgvQMbcH27cLW/c=; b=BNOvfVe2o8/cftIS5BCC04T3dOIACPRaL1b33napOg5r6S71Hls8zkO6 lXy1UcU8G+b9XSu4ozxQcNgUqTw8WWhznHhMTl9AFaAZJEVol7Wv+Rgmv 8aibGSZRsQUjACIFHc1ex2R1fbRlKq6bkZ53NQ2lFIyUooDF2QHtDzNjR z1MhIrIP0nEJDdeSMh3gFCUxgtyIYqn9m3TXdgPbciHEKvNLo7USd2sAP 3b5aKgc9o1vOsleW1pPK4vdGSyAPKibcjGSNVZBGa3+eU2XzRZHbDIm7p F2sm5Amkt8FhHtGry53fBDl8+dagIR8bXm0lywOq9OZNXBrrI7xjfbZMX g==; X-IronPort-AV: E=Sophos;i="6.03,238,1694728800"; d="scan'208";a="33575469" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 20 Oct 2023 15:00:22 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id C8D77280084; Fri, 20 Oct 2023 15:00:21 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Ulf Hansson , Marek Vasut Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 1/5] soc: imx: imx93-blk-ctrl: Scan subnodes and bind drivers to them Date: Fri, 20 Oct 2023 15:00:14 +0200 Message-Id: <20231020130019.665853-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> References: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231020_060035_385653_9FA4F893 X-CRM114-Status: GOOD ( 12.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This particular block can have DT subnodes describing the LVDS LDB bridge. Instead of misusing simple-bus to scan for those nodes, do the scan within the driver. Signed-off-by: Alexander Stein --- drivers/pmdomain/imx/imx93-blk-ctrl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/pmdomain/imx/imx93-blk-ctrl.c b/drivers/pmdomain/imx/imx93-blk-ctrl.c index 40bd90f8b977..dbce40297078 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 @@ -297,8 +298,14 @@ static int imx93_blk_ctrl_probe(struct platform_device *pdev) dev_set_drvdata(dev, bc); + ret = devm_of_platform_populate(dev); + if (ret) + goto cleanup_provider; + return 0; +cleanup_provider: + of_genpd_del_provider(dev->of_node); cleanup_pds: for (i--; i >= 0; i--) pm_genpd_remove(&bc->domains[i].genpd);