From patchwork Wed Aug 3 01:24:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12935114 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 8DA64C00140 for ; Wed, 3 Aug 2022 01:24:21 +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=A1+gFGPPLvR30qP+ID0V9ZMomYdFuylobggJUl7brvQ=; b=3rIkSQPfM7iG05 Z7nDj42RO87p680XHYAVQizp5dsVCRMor9w0QDvm7+HdzVPaEaBrH20NIq47gRU6GlGMwGa31EgaC zXDLYFoL6eYS4V8Y0KYk1xYivB+OLcSX+UbSd9VuxH1ZII6ImxV7iwGkws84H/0YBZKGGXzz1/1/i EsAoaMsu7fK40E/TXDcA1rkaDsHWW4Xne1N0xY2wv1GfdQoqkv87G6ejbw7GTpIYwZVOEaZ0v0SpI OXQJ/5iJjG7FOdNz5bmVFzRYPZIvKbMigXh4YLC++whJxRHU1U3jG1QFTS1hYJBy3MaRk3a+AxqFG H98+jgHbMokePC1SAslg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJ36B-001GyI-4G; Wed, 03 Aug 2022 01:22:59 +0000 Received: from mail-db8eur05on2075.outbound.protection.outlook.com ([40.107.20.75] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJ366-001Guw-Cl for linux-arm-kernel@lists.infradead.org; Wed, 03 Aug 2022 01:22:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/Gs5NPpSDt3o8UF5ANJVojdj8VkxUuUe3KmqickEHbhrQM3FoCkKHh3fEDKY20xPW6oFWbiUJilfr0UgL13Bqn59FdIggIGXdF5pC4ecdyOc+vDNkPmCtX1WQSl9ZALWwaHTnAKRUUBx4oMfnTAtA1EBP7nyokPU3q34s5QuhLEvRQ/4qnSWLPj0txYXIAPD5SrbqoY0DyyldN1wG9yQY6kY23h2LE82fDdAZuhikqNxQvVVv+oKLIGwYUeajcSdaoX2ldZ9ph9icg3oVa7glQXKKi4HqH2ocCjcymMIMFzQ1YAjClz0SnrCgvZMYUq9at0z3JZNM+g03m6X9lkGw== 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=0OENOBlSz6sGIJNb9kCDJs9MgP3gVRqo23cDYRIw7No=; b=fX0SSRrXFUvRSaxY2pb/fsrZ0nzxbzVC1gszXQ9so143UNogPXfA12LywqJly14FBlh9YEYUV1kzz+DyjfToCZRKUoDvSgx8hOT8cGZM1hvrjbNFvzXOQfCdSmiGdLE27o3ID/sP3IUHSDvApTnYrAerdjev74X/dM66SEUDPjMLsEGA5JI9G+EpYIm3zqTW7eZjnbfgyP4tUvL5kRmIaLbrtz7/ffBWxN7AcmKLBLtrselgmMEwz9sBwzyT7nPCleIgXA2nb8v22GBZHma/kgmGCifMUJRbU6GliXszoyvT3Y0s2NCiiTvJh+SXSGBHQIVzY7tWt3oQFv9Gs8KVrQ== 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=0OENOBlSz6sGIJNb9kCDJs9MgP3gVRqo23cDYRIw7No=; b=NqdgGhplAqS4ODtwqeA0ESxpGbJBMkTFf5qUENmYjMNfQXkos7TeDt8X7ynv1zOSplzazKo9vLiydGH/z5OTMTQGORndfX24azXRpoerzBkIGY9lP3fMBEJ5/cqQsDMHap6wYjIPhZm4ctSccpuRFlmblY1hQdi+s4mwVWPccJk= 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 DB8PR04MB6891.eurprd04.prod.outlook.com (2603:10a6:10:112::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Wed, 3 Aug 2022 01:22:49 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b%6]) with mapi id 15.20.5504.014; Wed, 3 Aug 2022 01:22:48 +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 Subject: [PATCH v2 1/3] drivers: bus: simple-pm-bus: Populate simple MFD child devices Date: Wed, 3 Aug 2022 09:24:19 +0800 Message-Id: <20220803012421.3410226-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220803012421.3410226-1-victor.liu@nxp.com> References: <20220803012421.3410226-1-victor.liu@nxp.com> X-ClientProxiedBy: SI2PR04CA0009.apcprd04.prod.outlook.com (2603:1096:4:197::8) 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: 41a0633d-8756-42b3-0b22-08da74eead60 X-MS-TrafficTypeDiagnostic: DB8PR04MB6891:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yrjyZkZoVr7KgHY8wflRmJy647bP2Iu0yd6FHerx1jP3tpJuQle0eq2Xer04vbbNRFsRVr83238eUdqpp7K5etNvd4Y7HWznTLLCXi8jqpIPKDAg2x8TzZRTomaSL/4PQY2PYwUpJSB5WrOrd6iTJtmg+Bc/XUVLkucysPcCNbWzA+YcQXRQATESuWTkWc1ooPML20ZPgXFoJKTXlwyHKHyq2JEi/qrqNN/r5JlYUdlZkzqgxhFm+NOviiGxL0Dh1tBshb+o/bywUsaDbaRahW8aRbN5opgaEJJEsdWs+UOeJZ/wtfRDOtj7wFqaIYh8qBZsooGjeaBHfqsosY77BU9ky7iWw/FbDZlwfKdL7Zped3dQ+BFZfTHVwNKHhsJIWTIuvSxdJoNS/+kSxJDkS37fj218ZKwrAFdkvpOpfFY0VbXO5ljtZbfttt3RJw8D7DYtolplV3npa4v/FY886Qvn3zLt/H2oNK56CQAAIfqvayuMr60b/DOTiroef8Kv93aZfefk9viOftwCOPujUZqBBdFPK+VrCAcF+c9Z+qDJ/KRFXBs44zo17ioP6ua+CAsersj/ywtVrU229XulYk6BPKVgK0yIPCpjsMgAUhF/5SoPfhxjZ0tt2tOWS+J4cfh6Ec3+miNh3eUwcOUtLVKR9XZMQHnOO4n8ti+N16GkRqe/FF5JlMO5pIF7Eki2D3j5ithfBdO9E9dKd2qebNPWIS8mTU4kNG5krIlaA1YhPm3ZKlFeuZCGlrDjyr/N5Cu9AEFQbLqUXbRGOk/40hDl5+hyTXKHndXSBfopvdk= 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)(366004)(376002)(346002)(396003)(136003)(39860400002)(316002)(86362001)(5660300002)(7416002)(8936002)(66556008)(8676002)(66946007)(66476007)(4326008)(26005)(6512007)(1076003)(83380400001)(2616005)(186003)(52116002)(478600001)(6486002)(6666004)(38100700002)(38350700002)(6506007)(41300700001)(2906002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /lIn4iT7gFt8TDP9+XXsKDhSkE/xx5E8tOZYbqlrDNx3EkC83pgq/Z4+kztrTaELEw4AmCqXtcITiPqSwSfRCsgfvIvJkQfkoGE+8hGnnx9oIRGeTOiUHCTbcCRLVYhAm+dcisiJBGDjYuMGr0U1FcgKMY5bIakIaLX7Uhe4QdWHN1ejudT6J+jSl6oo/t6H+xsZ3YGm61fYsgsPgBU576oArkCid1zgofcb+mFwz9JmvSjavsuDcnACR0inyoF8UY6hyAyTsHwcfQuPRbSHuWJkg/jzXpWBEay2Qwck6WZnVXavnKZja8IrnkPPsLa4AkDzqRsxZpEiGZfLiAjQGr5ZvKpY00SWdcZvAK0xJ76sOzl0FsQVOHacdIqFsZhl34kcBaZzQM0KxrTWXaDCYYq/QVGZQ1gTREcraIiv7PRdvkTwM95RGQvD6qATEhSid5mVfCsOqZKypiA31v1863VU2C8HMdEw2V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CDeGhUBMlVB/q5+yxs1agNM6E0fHWa+ocOzgPWSqpygG X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41a0633d-8756-42b3-0b22-08da74eead60 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2022 01:22:48.8949 (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: MW0schZR3c4rteiE+DAc2rNd36Jq80P0GSfaCVKJ3q7cDbS8iSS3dVL7GC2MudRQZSE5B25bHiFUjpCGesN9/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6891 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220802_182255_683022_9FDC65FA X-CRM114-Status: GOOD ( 13.63 ) 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->v2: * 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; }