From patchwork Mon Jul 31 06:47:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13333684 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F09F1C001DE for ; Mon, 31 Jul 2023 06:45:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbjGaGpZ (ORCPT ); Mon, 31 Jul 2023 02:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229956AbjGaGpY (ORCPT ); Mon, 31 Jul 2023 02:45:24 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2053.outbound.protection.outlook.com [40.107.241.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C696610F9; Sun, 30 Jul 2023 23:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mMzVwntcOuyQyOY7vPYwt7/q/8nFzOZWd6LH7AklugegoPlqykJu8pYbnDqWr2Wu9sauds4290007BiYZ+vTsH+Ln0IWs/99ba/6GUHPos/zyJqiFVtc1PMVO+n4Ebp+YxM3vsRUJg8hNE80eValTbgvnxAmajwexkRnyH8MEhwPfaPtIh0rZwxnUKPMsfELB4HCQhxB8Dni/S+n2D0InksV60DGiGoPCxYxi/ubTONnybWJ5cKfpCacaJUxW9Mxbth9G0BmAyjgqUMhzEm2McOAYRHGCjUtkaZ/LvDAAg/qu6WZzPIzjyYp6mLJo5+M9DQdozwKdePAyNp6XqKWiw== 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=z6eZg2SXpnwBey6uGP5mOAlS2QAU13HzikrGZ4cybSU=; b=PFRf7asxvTFUszxY0fKO8+ch9/yJIyefvPOC6EVmhWFRrq26k9/uYVXTSMYXSIuRDAD3Thl6NWqyQGMfAfjsuXhKzJL2pdrHADC/vnw0aGWGVO+FrYyV0fU1iUO9EdZHZMt0JGxn54XAaWP2FJSysx4OpFGGmki6RdPhc/3WCl2gPaHft/UbqRlhtq9j/9kqT/8xSLp3VwGyzqTuOl433xuhyHJYW6EWe8cyXCW3YNH5XLGAk6RKVnp3OE19Dp2qohRWMPz58uKqABybZKYcqr1OI99hpT4/Wx+rqlkkFSedTIekTmGELYdlbeF9Q/Ps57cQ7jKtpzmF87NwsI0/1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z6eZg2SXpnwBey6uGP5mOAlS2QAU13HzikrGZ4cybSU=; b=Uts9sJf5npAbmtpfrTWI74gqT2b9BfDSwlCCmuh78TCsOS3K/5f9SfDOvCsUP0byOWUes4WWBKNyXaevqPsdQBhjT0RP7DNIJjV8gIGPKcLO2Z4IJvoJtrjAUW5H53J/lzdZ6ycnJRWDcPP3vc/4igFEe/c+73mUk6ouLUFtpkM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB6834.eurprd04.prod.outlook.com (2603:10a6:208:17e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.43; Mon, 31 Jul 2023 06:43:31 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97%6]) with mapi id 15.20.6631.042; Mon, 31 Jul 2023 06:43:30 +0000 From: "Peng Fan (OSS)" To: ulf.hansson@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Dong Aisheng , Peng Fan Subject: [PATCH V3 8/8] genpd: imx: scu-pd: change init level to subsys_initcall Date: Mon, 31 Jul 2023 14:47:46 +0800 Message-Id: <20230731064746.2717684-9-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230731064746.2717684-1-peng.fan@oss.nxp.com> References: <20230731064746.2717684-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM0PR04MB6834:EE_ X-MS-Office365-Filtering-Correlation-Id: 23deccae-04c8-44c0-64fa-08db91917401 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o85uwYrncA9W4LHOF0mHB9u0/HgzLyU+RS8TqSZzYtSxHeQyIjVVHOMMZdDlY0ubeRXtvDn5DzHhgGCRdAa6lGRcLw7Pi0kbCPvPACyx2aX9qxVoU8TzQua/yMscv48SA7QC5EeM602AJVXiCPGdL0pK+VGONtfSxkN95QBPkyYQ5BZ3Wu5QcAiIN2lcKZLGDSMDxU9pebkZbdKt3BvJvum0E2KvfAYg6RZpobH/qo+Q6bee9TWeK1F2N1Xb9VSBX5h5/Ci+tJEmDC8xXEtl9XYra2SIFGCjtPFycCRaCODKybxIYmhpY0F2HTiPVCpMvNSHG7ExdUisd2VpfeevjoyNhfc6lZMv9brms+jSONEnb2nPLtEVI0x6Vvj0y3zFo4LJrwTEuSC3HkF8knVmVzJtM1xX5wec5rvAIQ5qq7VjF8lFf6rTGXsz1iVEcWbd7K/UqZRWXgTiWsJbnBTNHqfGkHD6qxGgYzKHdz0Cum14LnidymG9kSNX0D7xuzQSfsBsyUeF5W+Of5to++Eiq1Nl40Jnj+tKzIpRsNirro1TQnq39vJgG2am6DWCGS+cc7+jNjNWSyjq9XG3R5xV2CAzbs0KQGu6BhQUD+5Otra1jL4OqD7Xu8mHdADGtSm3 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(136003)(39860400002)(346002)(366004)(451199021)(6512007)(52116002)(6666004)(6486002)(186003)(83380400001)(2616005)(86362001)(38350700002)(38100700002)(26005)(6506007)(1076003)(5660300002)(41300700001)(8936002)(8676002)(66946007)(66556008)(66476007)(2906002)(4744005)(316002)(478600001)(54906003)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: upfguargHNyC6PH4SaIWPMy6cxzdw0dTxDN/EwOvhBsFFe3ATZlA2AZJK4SZbrjhTSFmbOzNfOLGE74h1oXKWNNvtDVVRkOuSB+iN1QOwqfyO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0GLK7zEu6WYsQSAI5xQAD0/X6+RuTn3/qT0zwNkqyaNZGjeMFIo4BqwPL0hKOuVMgCDZ+b9hCcGiX6PQOtStPM21VKcFL6Fc3xmzplTTKD1u/TQZ19zthdL9FwuClv0l+uYpyisNuY45TjNX6JOxhu8sp+1mpy9uxo0Jl+OhAkS1hMbzu2G7cN2Os/iLmFChzKLZRDCyY35P/KW9vQ+gi3rzD9yy4gdVD7p/zA9sksqYEN7oqp9bbNtobQkBsjt9X5YLIHII+NndajMAvav7r2oi+wFn4Q+ToYn6o2/JmRe90T2LwgdCiP6P6ocz/KVZZt+F0f/uzfKTZdjcxP5rGijxP3+FyKR855XU7246cZKq7P7FbT1LZQ1pQFGj0CmMsVljY7n X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23deccae-04c8-44c0-64fa-08db91917401 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2023 06:43:30.8734 (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: O9Cb5htWhZdjZgMZhIRTK6eXbhKHAHwgBswI41PPj7oxsSMq8LPmBCsRLx0DUzxQs2WLAtGJbgTx8ViiAE/GSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6834 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Dong Aisheng Change power domain init level to subsys_initcall to ensure it's probed before most devices to avoid unnecessary defer probe. Signed-off-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/genpd/imx/scu-pd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/genpd/imx/scu-pd.c b/drivers/genpd/imx/scu-pd.c index 30da101119eb..0cda0999a1f2 100644 --- a/drivers/genpd/imx/scu-pd.c +++ b/drivers/genpd/imx/scu-pd.c @@ -587,7 +587,12 @@ static struct platform_driver imx_sc_pd_driver = { }, .probe = imx_sc_pd_probe, }; -builtin_platform_driver(imx_sc_pd_driver); + +static int __init imx_sc_pd_driver_init(void) +{ + return platform_driver_register(&imx_sc_pd_driver); +} +subsys_initcall(imx_sc_pd_driver_init); MODULE_AUTHOR("Dong Aisheng "); MODULE_DESCRIPTION("IMX SCU Power Domain driver");