From patchwork Thu Aug 4 06:11:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12936115 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 6F5EDC19F2D for ; Thu, 4 Aug 2022 06:11:40 +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=E071edQqoV+gA02e+Ke+90EU1sPSPCLC92CP76zxpzI=; b=Xym9h3Ph5OOLYL ckAG9UTds5ywKwKkKCTMxFYhJKK5lkYULzu9QTw/KrEh5sTxgT2l/2S0Nb/XlBhch5lgej/DxzMwW 6XYAaQWB8WMxZYZCzEA3iotsUMF1A9nSzmoXXUc7Ecatiwqp8u096E/FM2pebphDPq6Gvdx1nTyrZ v+tKhrlRXQfVXV9FPqL9fqm2oVCqP7uxIaH+NwTZQgN271p3iGV6yLiI6g/pJ8bRZiw9aPCZ/wTeh 9bWKiLG2vxkjfn6cznmDaqYbNSFNX6v675X1jHVPcEgxYCePCv0u97H1q6IuM+sLTIqcHq0hzqCuS HiTiXuhIqPZfRtt7NYMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJU3t-003d5R-Bg; Thu, 04 Aug 2022 06:10:25 +0000 Received: from mail-dbaeur03on2074.outbound.protection.outlook.com ([40.107.104.74] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJU3Z-003cgh-6Q for linux-arm-kernel@lists.infradead.org; Thu, 04 Aug 2022 06:10:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QbAvvc2xUbSK9LyluV0p90klBDS0OORSC74N/3A7j8dqdgHCUY7jp2N31GxJE3WCGggYsaNytvodX0BBzhA+1U6K88wV6eZyf93IeOHGRXdSE8H12FM9uD8pFEKNEaASuEw8E3hcO+3sc3q7FowAtho8jBLEEN2TTqb60ReVtJp2A08H8m9vbAWWBKgeImsF5lLzfrt8s2irMoBgjHyNI7KNFGE/8nstm2tF7NeJbxIa5jUhtdAg18EXQQ/bXIXGU3lASb/S1YTr/boNucFy3a11ysB59P5+DJbgjmnjN60fNi4x0qTpihEsr1vNp7v4+V9bFxi51vTl+Fu1y9acOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kWYG3po13cDVDOS3mxdIqYHUJ2HrZYlyJXjrWF0yZ+w=; b=m6qhnektr0BswaV0DYaFWJHiJOSv0EIWop4nsWGqschCM4Rz4T8awupkXcZxIJjpt7ImWlmHOlsGhkmXfNaYt2eBWxyAQN9g1y94C8p5cL4ol7GfG/wJLGWXgsPY9vEXIinjoEMHifrlN2IbdcdhZ1DV1KVp2Wzk0v5Jog6D2/n+Zr+XrbtwFSKyUB9HpEYMKIhUrhZRuODvGdJ1xmcfER1eyTuh8PA0IGfvolgPWrChNdG9o3DOiDmQDxGA/fuVV1n3Nv6eYnXirAC+hrtw9fLGamWlamWx2z2vNMnHetkwgJlcjKObQ3R696QR1sejkECT7EL0Cs95cHFvp69T6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kWYG3po13cDVDOS3mxdIqYHUJ2HrZYlyJXjrWF0yZ+w=; b=HraLyZBgwMK4tcY9iGkIYPnl3s3FIdug1DLPXmZ6Ohl7SiBjjflBQnYJ5jZcdoBiQAT6QD2Rw8O6lEKe4PMcZ4Cuym5HyeQNN+QoMKE8GNEMKihOghtPGg6FMtxQn2iRV/8a0OeETNpQ7lzEfFx8pQPORoFHF5Vx6atwQLOLkO4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by DBBPR04MB7721.eurprd04.prod.outlook.com (2603:10a6:10:1f6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.15; Thu, 4 Aug 2022 06:10:02 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b%5]) with mapi id 15.20.5504.015; Thu, 4 Aug 2022 06:10:02 +0000 From: Liu Ying To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, saravanak@google.com, gregkh@linuxfoundation.org, geert+renesas@glider.be, krzysztof.kozlowski@linaro.org, robh@kernel.org Subject: [PATCH v3 1/3] drivers: bus: simple-pm-bus: Populate simple MFD child devices Date: Thu, 4 Aug 2022 14:11:31 +0800 Message-Id: <20220804061133.4110734-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220804061133.4110734-1-victor.liu@nxp.com> References: <20220804061133.4110734-1-victor.liu@nxp.com> X-ClientProxiedBy: SI2PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:196::15) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e68fa8a4-dff1-43ab-78c6-08da75dff7d7 X-MS-TrafficTypeDiagnostic: DBBPR04MB7721:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /mv9Fx9GOZzNXxEkWwHljM0HUnDcZRq7b1F1QsdnEyJYmIxF7r+0oGS1Yzu+d2OR5hI1yABV/2I1k8QqL+WiizbvhBKPkL3RKChvsHAKLpV8F1qoiXExd3IJVJcScbqnkjS7z8USAi3WnD5h8ZOYJlVcqBcHtHbv4/AF3wlM2AbtV6Aj/UFYFp5J9BbFj7EOfDzkZQczmDty26w/tRRkahyvNdHW8qqx4al+3oNl/4ALLHcR1TFJiZhDs4iWnr/9oU3VDfx9KQmsDuJTO9Lu6yTUqYH3mBzVn9gUSeIzFeuVoQIesjVwBUItoGDf2HkSD4iWEltNkJAfiJyTHwinyml89eL7jfdrohpODIUl10izf6jeT4Szgyx+MRD4z6ldojvw5jyzMpulE64dWONK0EKQJCOexDLSgy/GGgCfwdUWwsrZCIjIRygc5Cl48esTMC7zyrfOZmFiybZ/CzybFGWvaIiDbL8DbsKynM+06Ku5QD8MviEtQyfc3iXWLZUTKyeKBVYDu0v3p8z0x8o84+yU07owSGV4V/cs36gunzJp6AZ9qBnfERshaexJZx0yAyVYaJVP8Z4SuMWU4KBMMQjVpmFoVb8exmXCXu4beBZEu01XKzl/TDQep79EfiKRKIGW0WzkcD5RoOhfegtd2vraxg+C1sAS1gCPAovkcPD6BEjCL8qwMIaRaeG6O775PAf6nZb1RCHT1jlrxO6+jSmuyfeCqItT1uqlrmEBnAubzqArfnvqLbHaTfWWmmSaaTNoN+qvDb/yj6xD9x06wuFWlU02xO96uv4HQpaGRcA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(136003)(39860400002)(52116002)(6506007)(41300700001)(2906002)(6666004)(2616005)(26005)(86362001)(6512007)(1076003)(38100700002)(186003)(83380400001)(38350700002)(36756003)(5660300002)(7416002)(66946007)(6486002)(478600001)(4326008)(66556008)(66476007)(8936002)(8676002)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: m/v/i4LSO898XXU0q6QMz7bNeFhlcQv0SmmJ4tpXv+TIR6alqzPQofleDRrLEDlfBC2CRQZ6ml1ieYtm0c5dAmTuZUHsGOWrA0rY7z07niH+/GysTs+DXSikWPt91L/mNY0M90VDNjBUAkdt0FSGMdboPtbz1VFJWe8k/EbzBgLboU3wy2xYo8usdkO7GopDnGRDbHyPOIA86Zi+V9SvzSpj1Xsv/Mn++oqW/CvnjuMqGgxGrZxcP57tCYWyUGs98pd2dTb4XPKuCdc1mMh2PL3wcD6lqufRWN8psgGRS57PMP/K+g2kJci+AXwtt8TX0iO1pO059dzRkfMSqr4jUAgw8znSj1Bbqva28K5E1WYMxz1vY+5ixZMS5LXt1idxp+wBHXV/0t+2LfZMW901IcE1OMEp4ZmdvRv3L8M0a8os4dWTTZhmW/Hea3JtOc5my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NpduqFQ2sXdkyn60T+psPrXd1G0c4tuKBA69XT+loMQfbGXXO5IH3Xwu4GM8dI X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e68fa8a4-dff1-43ab-78c6-08da75dff7d7 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2022 06:10:02.5251 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qIQAsjo/mYbdMX8h3xS9OFLqqVMSgoyzv30g54Yc/say0b56nxz6bDQ83xB8mZZz2TGya4P25EkJQctIKu+Edw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7721 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220803_231005_281476_1E91633E X-CRM114-Status: GOOD ( 13.39 ) 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 There could be simple MFD device(s) connected to a simple PM bus as child node(s), like Freescale i.MX8qxp pixel link MSI bus. Add a child match table as an argument to of_platform_populate() function call to specify the simple MFD devices so that they can be populated. Signed-off-by: Liu Ying --- v1->v3: * No change. drivers/bus/simple-pm-bus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/bus/simple-pm-bus.c b/drivers/bus/simple-pm-bus.c index 6b8d6257ed8a..ff5f8ca5c024 100644 --- a/drivers/bus/simple-pm-bus.c +++ b/drivers/bus/simple-pm-bus.c @@ -13,6 +13,11 @@ #include #include +static const struct of_device_id simple_pm_bus_child_matches[] = { + { .compatible = "simple-mfd", }, + {} +}; + static int simple_pm_bus_probe(struct platform_device *pdev) { const struct device *dev = &pdev->dev; @@ -49,7 +54,7 @@ static int simple_pm_bus_probe(struct platform_device *pdev) pm_runtime_enable(&pdev->dev); if (np) - of_platform_populate(np, NULL, lookup, &pdev->dev); + of_platform_populate(np, simple_pm_bus_child_matches, lookup, &pdev->dev); return 0; }