From patchwork Tue Aug 2 07:13:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12934277 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 3EAECC00140 for ; Tue, 2 Aug 2022 07:13:31 +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=cWL7RVO4NsWbOJOD70eBoJnL1NSsMFyrJ4InTcICqLI=; b=2nJwvVgQWisS9O xpfIXvLZYiQeGl+f82QHJe7YNrY9wdAvWL4Wc1H0HxKt0/sWmX5MBXaCIz87VLgO8hPR/fDYrncrU zKK9aRHiKqTfsilWt+1rulbz+EvGhuTAi7pZkp/ivZcHZTw0DsmGOR0S70H0BYQ5iKgk3JSNrkN+X VoxlAgfaO7QE3UrbE5yHNSFPtvq/ud67hoevCLMICj/1m569JJSdOxzEGL7GNNTNJm5TTb/mFYTeA TrXdzjjUoCXR5CSFDtHVj/ZtQ8icL85gYhVwVOdypVDuGHzMKvlO0DxHIm3lcj5N/KB+9XTTXBFft oclxWkCQuOUhY87/ZBlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIm4e-00BEQC-RI; Tue, 02 Aug 2022 07:12:17 +0000 Received: from mail-eopbgr60068.outbound.protection.outlook.com ([40.107.6.68] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIm4R-00BEHE-S4 for linux-arm-kernel@lists.infradead.org; Tue, 02 Aug 2022 07:12:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fhr1w+2bk8FhRJoukBGz13tRPt99yKnoTDjz+hNd+GPrjtugNa5cpn2NE1dkvwuwx/2pwvvrPzXZMh813ZYV7IjBtJDkDO9wO50fdlVet28DCdSVbZAxYtoDZIZv/iglO04f8JT/YjSJJNr4IkcIcIvdtO03rfzZbnF2r66CfLAZWBu4O9KDZzjn9qKyHbvP1o/XI3Wl+wAkQjpH/tq/FPNa3WJp0pS5u5qwwuM2eF0WZyXiwX6ReaM8hrtM7IixCs5D2C4xGpvZ7KFpcgof+Si4DFTT5clq4/M/iJlGStbKUvq1wgU61IWZND8VhoKj1ffytSfkryEuaNpJqV6D0g== 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=F6CfC8qK5KHiAqGJD7X8iI/+pRhZkzafg65odsgCneo=; b=KJPToPDgpzhT4lQy7eguSaG84+IvgpLm2Byvg5vcEA9XdnQqyI3BkyUpyNiwmUmiuX1x1JK1bxQfWZ4qhJOdy180i2IhKg5yzvR3OeWt90Jd9SYwgkLfjv1hUAw2dThz5HvGYMwvqctB90sUGSMoD4k0sMw/XcvzI+2N5ef+s5YgmKQDsiYLhQc/sqTa7LxJp5EtZwe4aqgRKapRefnBNSp9R4mSgGPjhi79Z152rrp1NcfXq4lbzQ+OMUE40CoAmiEJFjhDFp7HI17anMyOTMU5SNFvtE+SE/Xbfu++KIt+CxvGxL5M0vj6e5LNt4zJMtaA7RjJm2KzHjSstV6Ydw== 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=F6CfC8qK5KHiAqGJD7X8iI/+pRhZkzafg65odsgCneo=; b=d2xQHvQf0mhsDMGNccqSf8X82oj+59NSMne9ZuV0S/VXmbFMTq2MAgcG01JNb347ULRlDYo/Zf7XNFahPU8C2xoUQecA6sBJZHCRVrcC0aP3O4G3KOPnrGnFsWLU+ACEaOBUhWyI6RjEcSZFjGwm5PE0u63gecmrJYz813XpDgs= 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 VI1PR04MB4719.eurprd04.prod.outlook.com (2603:10a6:803:61::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.16; Tue, 2 Aug 2022 07:11:56 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b%7]) with mapi id 15.20.5482.016; Tue, 2 Aug 2022 07:11:56 +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 Subject: [PATCH 1/3] drivers: bus: simple-pm-bus: Populate simple MFD child devices Date: Tue, 2 Aug 2022 15:13:08 +0800 Message-Id: <20220802071310.2650864-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220802071310.2650864-1-victor.liu@nxp.com> References: <20220802071310.2650864-1-victor.liu@nxp.com> X-ClientProxiedBy: SG2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:3:18::28) 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: eb6ef2e2-602e-498a-5fa8-08da745648d9 X-MS-TrafficTypeDiagnostic: VI1PR04MB4719:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YhzZr0effVryjGB2kE8lrkuKWoZkQJtXgy1Pu1HtHslvEE/2K0iG+Lc6R3Cm+UTXGHRk64JsHTN2VGJNCO4oZ7V6/fykdFceWpRtJAEF3/egij+sCV9l/MQZux0E/j6xlZ1s3iGs7+OgRaK52f25janWVOwh4CEO9Q1l1j6YzZz3LcsWs7mDgtC+qBtmQ+YZc5x4bo6uTaCPvDu1Hzb1kk671zLrs99rOBKdqRDjcDtr5vyRD8U5cybxE1Bl+gkS+aQ1Y2mHyahw0OxNP1OhwYwnO3i9iuPednCE9WS64Rv/y1F9Vy3+tHRXzTpKQxBnWEoUUa18rMKtjh3015ArSmCOOzXyf02c50nQ9rDph3vy+AiDARXooFuMDE9rYHAmTtz7OSwxQGrygQEZuElxMMz5vVIrbMFNI1T6heudrYQOj0llNJcIbEuHn0IectX1YdCg9h/lHYtu6EUpMEoOxj3U6fQtcG1+a+tJ0GAinUiRxsMPFrwBWzd+j1GJGq9Co10HJennq2wVsbnTgCA8yW4WvQlDDyf92cQeId6hEJpIQf3b9ozA+L+63WZaxNpc6rl6gZmHtXwCK18LrRxEwi1iYEMNq8g8B4cDJECRFIS7wLwxWVq2NB1EfHcXHCKlLCj5B6hDb/QllN4ky+WEiz0ech47HcK7lvpJwOBjOsf5sokFy1gmwFB0aTnsa+aB36twELEMmomF7Wt/OVz/y5/l9NfbZXefk7wAlOTPLuskE4uO46SzOG3gE+MBnpIThJeaJAuBAlAuir5Tt3dSchjmis/bDGIR3GHxyu1fHYQ= 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)(39860400002)(136003)(366004)(376002)(396003)(2616005)(66476007)(6512007)(8676002)(66556008)(4326008)(5660300002)(1076003)(6506007)(6486002)(7416002)(86362001)(66946007)(478600001)(36756003)(52116002)(186003)(38350700002)(83380400001)(316002)(38100700002)(26005)(6666004)(2906002)(8936002)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FkK/izLFbSdacPyhqNXYhWel1fkbVrxDk4/awHTvchz/7k31rGTXf/ZIlDFA92RZXfKow7PUn8NkitdLJyw2WV8NNDNZZmWkJaBiLqbnGzSUn+cEcdc85Y85X+6yjSUUBUTyFSMXF6gEDpQc2/mDGUqZhOonnYisRuR5YYg7ZZVpk4WO/6Hm5SxivWcyQcrE3Y7bUmqVPuSbH3cY0MjH2FL5uHNg4ZZKslOyD5eiUrUbYyaxEpJ2pRQa6MSRdcIPzoRN2ASfr65vtYQ1TYPkWD0/LFxjwgOhhzzHj0DhckXD4f8D2S0kzI6tsL7HZDCQovFiy7R6KUw6l9AVqo7kWVr7tcSiPrI5HBCcrx1ex3yIkDNedqn0bmPTXFaVciGsW7vXrbICyKUiPPKdxaFE3CBhMYLxjntpArRaaNghxrNVpjoY24vaTwaMzs15AZ/H6TSWX0Ef8OrkNJsNdJ+RM3lFr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j1VIdJMUnsHw/tUmAKUaRGYNHzEPqqORSmcQ2xZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eb6ef2e2-602e-498a-5fa8-08da745648d9 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2022 07:11:56.7542 (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: z7rJtj1ChKByfTgv/dY3yV/Y+WQXkKRFAI+i7heCbQNGq1ujOAYZP2M5h4sbd18Fa0BY66Uh+NX7k3IR9bYOJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4719 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220802_001204_936154_248EFE8D X-CRM114-Status: GOOD ( 12.95 ) 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 --- 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; }