From patchwork Thu Feb 23 15:10:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13150506 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 CEA50C636D6 for ; Thu, 23 Feb 2023 15:12:17 +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=VWvImjRLB+z7Jo3zX1KIJZ4h1t6ycdbP3TOXYuvLJL8=; b=0cGEBpfiyrZDrm dhhRcbNUr20g63itFPakkv+Fk2LMzAOTVc7glWEk/bjefaOG8CAIg7i6xaAZMmoNodjfqRNxjmPLd N2XA3OdFxVERRv/dhacHcnWPg/ihWCe+Oea6mWQ5vtSw1Wiq5wCOsBMQ0Et6efjDXaRk71KSyBGit EgoogIJyxJZ3ARuKDFfnRh/a0QSoOloHIZnqIPQ5ZIRacXvqy/CtOCUmaRhg4gqZxixEv+FQ55/5X feK3hwo0IQQYEI1Too0bSbTLawvGrCvVmRdt/3CZaObZXM0dGV5uRF24KzXMkX2kA1QlwS5I899TA qYSqo2/u9WY0J3KmBYNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVDFk-00GxxK-K4; Thu, 23 Feb 2023 15:11:24 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVDFT-00Gxs5-Mn for linux-arm-kernel@lists.infradead.org; Thu, 23 Feb 2023 15:11:09 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 2D1A98574F; Thu, 23 Feb 2023 16:11:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1677165063; bh=16xbgJCTo5sTBDrtuR0KQuDS4zF7hRZbmCwulnyc40w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uY74j56PRyRx8q2zDB/bx1WGePGPgJ2peTuxb3yOALzqb1SyDm7iMbttlrWyZUQl8 wtEKurJaEHwku572bRyfz+FNXutWuiUBfMjaoEjcpZA/zCLXGj3BgVV4x1BkobqHgu oH3vdlfiAU7fp3VXKT9MORlAcGB+8c4lfRoGsJyaBFsZwfvNcF6b98OYTiGRDrawJL y019nETx3ZkwNhPttOhh5bjuS7W5H5gCezn0spKvWzS9fHyMsG+1EAUQSmfvpmYp2p JBRIMPh4EfX0n5FzqWtXuYw3n97Ixa41O+7aQQQcZhnnOXBAYDKml8g0rHs9fTc7PP MlDbLct2zfG+g== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexander Stein , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , NXP Linux Team , Paul Elder , Peng Fan , Pengutronix Kernel Team , Richard Cochran , Richard Zhu , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org Subject: [PATCH v4 3/4] soc: imx: imx8m-blk-ctrl: Scan subnodes and bind drivers to them Date: Thu, 23 Feb 2023 16:10:42 +0100 Message-Id: <20230223151043.41548-3-marex@denx.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230223151043.41548-1-marex@denx.de> References: <20230223151043.41548-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230223_071107_915483_90C3D927 X-CRM114-Status: GOOD ( 14.19 ) 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. Fixes: 94e6197dadc9 ("arm64: dts: imx8mp: Add LCDIF2 & LDB nodes") Signed-off-by: Marek Vasut --- Cc: Alexander Stein Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: NXP Linux Team Cc: Paul Elder Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Richard Cochran Cc: Richard Zhu Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- V2: - Turn this into 3/4 - Warn and continue in case of error V3: Add RB from Liu V4: - Use devm_of_platform_populate() - Remove RB from Liu --- drivers/soc/imx/imx8m-blk-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 399cb85105a18..77e7dc4eb8cff 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -310,7 +310,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) dev_set_drvdata(dev, bc); - return 0; + return devm_of_platform_populate(dev); cleanup_provider: of_genpd_del_provider(dev->of_node);