From patchwork Fri Jul 14 09:09:36 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: 120357 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2376106vqm; Fri, 14 Jul 2023 02:22:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlEz674+mThTda4Lt8Sz1B6n9H0kLdb3rVc2tV69KYRQUwPbzemNl6pVLB9YV1rnR1QyuALz X-Received: by 2002:a05:6358:6f97:b0:133:a8e:6feb with SMTP id s23-20020a0563586f9700b001330a8e6febmr4940110rwn.12.1689326538315; Fri, 14 Jul 2023 02:22:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689326538; cv=pass; d=google.com; s=arc-20160816; b=HX8lk9+zeOdJEXlw6XY5um2iv7LPA6NLD/VZ/yJK33qPZB+Ic9AEAWLrN2YBLrxEs0 +/ImNnvhIWDcmGVdhJvhQev6NG8NFsFCsg2zroRtB9QcsljYzt5abzI2ldAVeAdKbaB9 epPHgkyxEZeAM2OR5+JzYSrJpu9qqUgjC/r3lgKTMApD5RvmuIcij2iBaNOEwbZ59FLg mgbBAoNvB+ixSp9ln4aSk6pR3ViS46ormozvVNKJhQW3ZrDzfgEO3w38U3+Uh9W2/nVB ckQCrKpTDgovogN4C002vQnWtqc35Z0+WGxoIxmJaH2C12OvgeMx6FfDAaJJ/Q9Gk7L5 ksyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1GiivpDlMbK2t5no1+wIhaSQP00VKPs7OxHZTRhK6tI=; fh=/3kiG3j1vDHCma2P21rL4Ki/FPr8/EdpHpPPQ66iOXk=; b=ixeYg1HOVlNJAcR5i7W/cVZttDAS1826xulNhfGjyMKUb5Mz6v/GyFPwdNxK5Xz95l B5/tqOzt+m713AN+OCKhUiVIVUkyBijdUbNi/TEToUV+zGiOKs4jkRnOdcWeYJNfbC1c 2rxKZsrA3MoSC5TL58MZ+l9+XTr99x6Cf6298V5FOyTm/19DRk/Fay4Ujn6bDBwxZ3HR cLe3PfLMyAnKOwPsaf7rUerO/7alrxmvptz2MbsHIQNkLMu9Ip6o2H0zvPK1u3ayrqI6 ywkjkZTGHru5JaL5UElkm1PlJwqejbRS5r7sydtBv+mHed/IvHXqN1Qku5pL/BWN9eAc M1bw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="D5/bYDpm"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w70-20020a638249000000b0055c8d14df34si2401352pgd.403.2023.07.14.02.22.05; Fri, 14 Jul 2023 02:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="D5/bYDpm"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235507AbjGNJGA (ORCPT + 99 others); Fri, 14 Jul 2023 05:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235352AbjGNJFx (ORCPT ); Fri, 14 Jul 2023 05:05:53 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2050.outbound.protection.outlook.com [40.107.15.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20D2630E7 for ; Fri, 14 Jul 2023 02:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kyyPKSI2iaIaFZ8iOCkUKAuOdQakPRJ0CdPFMoWZCGMsuhXviRdjIDnaaont5a/eBFvVpz5iLGER0KYVoexkzeGugJjwn4+vOhiQlKwLZ2DIpH8sy7IGLl2KoJeDSGIha3PGVeJibcaR/gxNEYWGvf4Iek+0rdkgCb3DjL3Oi0yJ7jrFYj3otLs8l7oWEXbyXPMkO9etbcErX0m9yWUOVC/rX7QrsOBc1k0K19NIectgkN3hY+51zLjtt1BPVBAJz9/T10/TNapHXX/JJxHKkQuzsHaOggxm6+iqTj1sayHZQq26nxSpa58lcRrq1Y4J3glkEzQGHdThIa6yoLSY4A== 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=1GiivpDlMbK2t5no1+wIhaSQP00VKPs7OxHZTRhK6tI=; b=A58E3RsLlIhXPZrnH0OF+pDXba5w7xKgj8hJrGD1VD/nEBkLMZ/myd1vNX+E+7zxWKLimayMUkcvFzxg+KrjK9Ki/xu9gy3WqybvljQnXsSiRk4+zMqZ1yKUWcrjNQgTcndw5moLCaLbsN8TJET2Nkcd1cm2CK0v889gekrzaDH1OpAAwNWBC9Iypwf86vqV8/wxDX3hqj+OrhY1fIm2OFzSUBDQa7sY5tm4NE7mHe55I8CJrjLVzdgRvZWh6ecwiT0gZMN5PUdoNoIvJO6jLqhejPRbmPpKLxSIIc80jOlK/5sRbWnF6M5MTiHQ8E+Hn3lkxP7jY4zygpA5jws9tw== 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=1GiivpDlMbK2t5no1+wIhaSQP00VKPs7OxHZTRhK6tI=; b=D5/bYDpmTp3iIUsa58UCtFg3vYwm6k6hLjgoOFbghHaIO0DTOzvy6/lcSYrhHcHUiMtMBinon/3+UxkoDlIyiugPhgVNHkGt8Nayr8XHB/9AKNYpZAKfR37S3pWlN5XRABrTwC2H3dYtMm3XjA+NZmKZsStREMxUnf3Wo8xdpV8= 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 AS8PR04MB8916.eurprd04.prod.outlook.com (2603:10a6:20b:42f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Fri, 14 Jul 2023 09:05:17 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5c40:ed07:b875:18c0]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5c40:ed07:b875:18c0%3]) with mapi id 15.20.6588.027; Fri, 14 Jul 2023 09:05:17 +0000 From: "Peng Fan (OSS)" To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Frank.Li@nxp.com, aisheng.dong@nxp.com, marcel.ziswiler@toradex.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 7/7] firmware: imx: scu-pd: change init level to subsys_initcall Date: Fri, 14 Jul 2023 17:09:36 +0800 Message-Id: <20230714090936.937344-8-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230714090936.937344-1-peng.fan@oss.nxp.com> References: <20230714090936.937344-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR02CA0130.apcprd02.prod.outlook.com (2603:1096:4:188::8) 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_|AS8PR04MB8916:EE_ X-MS-Office365-Filtering-Correlation-Id: 566ecdda-e303-4c64-46db-08db84497124 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J5dVqFU7gxw1EUuuThM5+q0KaglKrCPRp6EgRoaKSzi1QdrUVmHRO7pzGcpk56hX+FC8Bclu/PETmLj2QKG56EEQAa3up9d3/m3xsm2FjQGkcWHhZ9+/elfwS7H8eSKA0Ctw2nFRbSjwVzGpS9kNXZHjk/bSVDOqpuPyGoJ8T26xylPfZrIJHgNIC10vjDQR7DL3Q1s+q7Sp6+DsSJVu8UdPnXXRuevpHinXuJWi83lLz0Ne/k1PUk+2KV1LG04JQBmam7lqXbvtwRg+JaBRfMPuGpgOwGWvmUPJBK+O/uxcLON2HHtG3jgF8DPKAewz1DFZ7c5VprveZw29s1Bmd2Hc6IpflWuQnlEGc6BC3jOdxA876MleuWrD+EGC0GwskB581VdbKC0S/dAjES8MTEKcqPoeFpCLlyZJqvj1Ffc8Cj4tQdkNUW547X5GwLM65ND9QCSHTgegpOPUKeKozV5zMnFaGIhV7Z0i8AIjqZeNlA37Wm0yrF8/3ax6LZjbRp5IZG5YkRb+WJhLcVlEIBPo4dTQZXk9WaQAVzr0o3MQQ9KDj/ibyBuHZccnmvdzZhidPhDLKvGOjd0q+gp0y7ZODRw/HdK6q8oEhQyOfrLsskWuLbI7ECyld9HZV8Tw 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)(376002)(396003)(346002)(39860400002)(136003)(366004)(451199021)(2906002)(4744005)(41300700001)(478600001)(6486002)(8676002)(6666004)(86362001)(8936002)(52116002)(5660300002)(316002)(4326008)(66946007)(38100700002)(66556008)(38350700002)(26005)(1076003)(6506007)(186003)(66476007)(2616005)(83380400001)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 673mf2zXoZO+2I1deANH1sfHhRU2jol1Z46naUrqE70i1UOs0RwiGl3KPr8GNlmLa209iKcHjxLAM7nTTKDpMvZTYbzwAMz7PBxDxsp68yUOcSETyDkZrjwuzCPEGnm9bkcU6jlZECO6iwEB9hBko8WEVI3fXhipR/h9bYW6m8S4Mfd6A+HrzF1SfSOO8DF6q7ubQddOpR8z066Yx8vo0WOg3N8Dai97uwPj2Vc0Bbx3ATyOhCDxUlrwdkKg30cYxBljT0XdNabOAWmnS1HoXnzpXd2MeD709adL4E+5UOo2vhwVKiOhy2bidKuuz1vylzSJwKSS16RAR5/K/UgV/qeEpwL009KhlFOyPs3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bloV3p9KZKPTVLuOyIzTsDcb2qcdAreRdOA5G9fX6uK5Ivayex4SjKAzDelpIvmiZIXa4bqs8xdXjBG/Y4soOIB+8PlzL/H0aFWmJTJwV/FUSv+2v5HW7znwgEIuHdGGMT5IKMlN8YwyMifP7q9dnVfELYVGjA7 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 566ecdda-e303-4c64-46db-08db84497124 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2023 09:05:17.1976 (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: dTOgqQUT5lCSXmAtesQlFS3Gy51nJvshLvmBDnmuVJ3dAzlbcAAogvMmfWps5d5PqmjoxQFf2MzvhjgLEsPRLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8916 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771387264569751630 X-GMAIL-MSGID: 1771387264569751630 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/firmware/imx/scu-pd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index 31de56366a50..5e6dbadb43ae 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/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");