From patchwork Sat Jul 22 12:31:12 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: 124313 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp815935vqg; Sat, 22 Jul 2023 06:55:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHByMxeDS4lzpA0t47kaLz5sKIpaDy+mCsr9x5t39W/RIrpWmThWmYPHtAkLCM71nSzaVAA X-Received: by 2002:a17:903:338e:b0:1af:e302:123 with SMTP id kb14-20020a170903338e00b001afe3020123mr6008358plb.3.1690034150759; Sat, 22 Jul 2023 06:55:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690034150; cv=pass; d=google.com; s=arc-20160816; b=nSQjfolmADp3olqFD4QvvHcrMWBkDDfOsfFLIsmiSweKHAMzyIYJwIW3EzgVcDSvrR rFlu57AMx9Do93XTP6AS5+Wp4fnu0MKdWS3+uIQ90KolfI9K+nNOKPi5j2cBimBOk2Ru 343z8C4Fv7fx4cLQ77YRWHbr8Us5Ud+e6qXeAlxbdoUyeWwe0QlD5Dtdub+w6n2Mz8Pm M+lj7jH0LqtqDb8l6ypr1Xx/6zlU7NJPMDMMwaY1w8S4zj4ESBRUFISMhOKG02+UbCM3 U0FR1oTx1S0TeY1AnvlYCy3JQGmQX4mXkJbcXV1ZBnh6OXJrGEFQDH/KlTXlAMXAcFob 3tUQ== 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=9eXsJHj1jKik5zS42sb9oDfVAHK3/hCH/diRSXT4zP4=; fh=lMFpnJZCjkSvetl9tpFZk4oM1K582D2CBXvvYFGhgSk=; b=N3QIfcFh8gNUaSTI8nbugVf3OCw/Z4r2pgjGTj4cdazcecH/Hx+l+VXJfcptLGr+gr QqA5f6fAp/cdnL6aE+1guDEukez8kbjQW90J1qIkhiAbaOLtC/EcgEx5djbp32YmR/Bo GgSlqFtzrUUk4BWdTT35BtnapGT409DrmEkOo+1lQrR6FTO3o9dHh/tm4B+YWYe4MajZ KTnOE8J5UUS3UIrvEIZdm+LkitKE6u5IiG/P35lWS2IJewQkXFCeSaE9nrUaAlQLGpG6 nmPpheE7erwCugNbK/vXtSCGtlgqx1rSMcZDMSQo5CRL+Ifncdgp/7MJLQvShaLrxKSO oBBA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=GomxHV5s; 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 k17-20020a170902c41100b001b8970a2b15si5745379plk.86.2023.07.22.06.55.32; Sat, 22 Jul 2023 06:55:50 -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=GomxHV5s; 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 S230362AbjGVM0q (ORCPT + 99 others); Sat, 22 Jul 2023 08:26:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjGVM0n (ORCPT ); Sat, 22 Jul 2023 08:26:43 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2071.outbound.protection.outlook.com [40.107.22.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F779E67 for ; Sat, 22 Jul 2023 05:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cXuNFmm/su7wKEDYHSirc5eGs0CksZhLiN3XA1QpliE2Std7u6nwWJS82BtGMy6ty9t1UyFy1N7w9xGYsWDroMmnu/q72uN+20l2Knize5qxYI0RwvPXoUbMfJKTUe3PgWQBFXYUmmb37Nue6iCGlwdVw0ewUEE4yrxm24xhk+M72u3l0YKAjv0X4m0uLI/53X1EXli3bHNo0yb3YEZZ6rO/LNVGMya2qZzzdS6o54QExtelf9SsPRxlUD2X5O1xau6vCjq1oZ/wsYSRS+hEMvlKI/kH5sAn62Z7zr+fVugdtVr1XieLcd+sy5EwhNDjPK2uswWUJHFRbobZta3jYg== 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=9eXsJHj1jKik5zS42sb9oDfVAHK3/hCH/diRSXT4zP4=; b=R0CT/QTzn7SBsMd+JG8DAkG1VDpfxH1+R37mLVAJYf8ClaSHqf3bgMtOh3Lcxzt8ruSyD0V3PTMlaxge9eOkwVWQ6fKVlVyzbY3aI2HrsIiyQ+i3mpM6nOJCCPucOI/0GlyxIPABe3y3tl1DUoFIFL3gybz2rHd9rDGZM9gHlde3YPU9KdoQ1+fO7wYVInHOaxlkouGtpnSRnpxUrfnIx0BySGRr2YRBIuwfh5TgEVwZHdwHih14yQfUetWJOb34gdEfD9eTTXCfBaGraZzhd7OFVNFr3VEiaPUmjU4uFv+dCefqc5ptAxDnMMvu1xQJISIrGHSv3930hSylqg8iTw== 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=9eXsJHj1jKik5zS42sb9oDfVAHK3/hCH/diRSXT4zP4=; b=GomxHV5s4SGCeHCMakbDXFhcdeGAj1w4EiAAf2pyfmzjwXc3dWfj+WwD8A4sdQb9YQuZwblfBrloUmeF6FxIfbZuy16u7Lp+u9WnqdcgXMIqT9r6cax30xzZXHtyj4wv5fCMjdwLJcd6qn3oM31rzKlF4xxz61Qvse7C2FY+8x8= 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 PA4PR04MB9461.eurprd04.prod.outlook.com (2603:10a6:102:2a9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.30; Sat, 22 Jul 2023 12:26:39 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c874:7c87:c13b:64f8]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c874:7c87:c13b:64f8%5]) with mapi id 15.20.6609.029; Sat, 22 Jul 2023 12:26:39 +0000 From: "Peng Fan (OSS)" To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, alexander.stein@ew.tq-group.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 1/8] firmware: imx: scu: change init level to subsys_initcall_sync Date: Sat, 22 Jul 2023 20:31:12 +0800 Message-Id: <20230722123119.1966998-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230722123119.1966998-1-peng.fan@oss.nxp.com> References: <20230722123119.1966998-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR02CA0129.apcprd02.prod.outlook.com (2603:1096:4:188::19) 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_|PA4PR04MB9461:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d0d570d-eb2c-468b-7b17-08db8aaee62c 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: dkK+yz1e+/JhBrglxEWLvfmmOlRzBJHFu4s7tN4GEc1uICF+RoNbtrEr9d88VWcGoswDZ++s3jJPev+e8IG1huXf7p5ycZ5pWgq/T98wDjs8POztR+3Udt7R0SuKuZDCbU+FxD6Ibtyp/xMDIyybPLv8OJuMgxQOX16+BqLS5Qlj8fDLKASAal7L4fIvNQ/ox0ZZpQRpm8MgYQw4l0Pyrm0MygkQXkn6gn8mFPDWFEZZi5WomM2932bGVodLAilbYVPlAwrnKFC6a+MrlALdlzCWxOyQQ2kGDGIDRBUm69wJRBCnGL4Ra3Mm94xcIKwhlpMgZx4v6dG0fFXdnaSsL34ZhlgoihRCMaR6Wt/Gkzg2QUw4xR4ywewWNALoUr10jPkDLoX+n3w2Av7e1oXbl3ATVhrmANkjksAPb9+rk+zRRmpE/ZTQdALliqmfTSjJXKD4uC463k074i8iIxruxI3I8kOd5Skf5tP/j82l0/mc7hTAq/8dMzQNGL764audcnsqUEj12ZSDzAQWNAdKGpql4oFqEZMKMRnkPl+lX+5008Dn2cBvsZcdbyX5IXDNIkdwBTLaGftgsnQ7xUMs5SwL0k2hiWCD9TyiXj4+e4ckyH1wc5zG0MGTs159cAOf 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)(346002)(376002)(136003)(366004)(39860400002)(451199021)(38100700002)(38350700002)(2616005)(83380400001)(8936002)(8676002)(5660300002)(478600001)(66556008)(66476007)(4326008)(316002)(66946007)(41300700001)(26005)(186003)(1076003)(6506007)(52116002)(6486002)(6512007)(6666004)(4744005)(2906002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LLl5xYvQhSzT0XSdXKNe8EoQUW3iDcWJvli6i16e8qEXYF/sw4betFxHk3uUibghm8Nmpjrnp/VHVKMfMEybm5eDRB0LuKxilH25hPjkNwkDEGpgT914PYVbX86o5yJyvgEvSo6TBjhY1AKdNHelQu8LRbqAkeHpAItcx3uUg7/SklWWx1HTDjdF20UwD6SKLRhiyJnj58AnFzex37kAzMPmV3GecOg/tvW7cA7arDIt1D8A6i/DZkyMwWmOCfEpUAnJgPMi/7ZFTUjcgybTuwBsppjfWNTsd0ieAZjMncLY9E06ZaEK66exYhERn0C1JUtlIm80AFMl9S6Z5lJR70K4IG8Kjc2xH4i+xLLLVaraDfYEGNvTvebCIQ8QJ3m3T59YUcsg6KDMqt6AtH9O/OYVifbaSnXAYZcxWyvU2w1QDtqH+y5PfPQA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G+ldnVkaktSE58P0kq1P3tgq9BH7YGlSTNmtGah1vIWHnWbzxnRwf4YY8OEXOjzSKk7vi/C2 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d0d570d-eb2c-468b-7b17-08db8aaee62c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2023 12:26:39.6838 (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: wyJW+Riw6a0iTUHvgKo9JXSq1d+Ymn/yaqlue3vwrEUNE5fh7Q576j+zV3EMsrju5JPbIWj1FZNfO+JLuKxGEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9461 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: 1772129249576769354 X-GMAIL-MSGID: 1772129249576769354 From: Dong Aisheng Change firmware init level to subsys_initcall_sync 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/imx-scu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/imx/imx-scu.c b/drivers/firmware/imx/imx-scu.c index 47db49911e7b..2d24359420d8 100644 --- a/drivers/firmware/imx/imx-scu.c +++ b/drivers/firmware/imx/imx-scu.c @@ -353,7 +353,12 @@ static struct platform_driver imx_scu_driver = { }, .probe = imx_scu_probe, }; -builtin_platform_driver(imx_scu_driver); + +static int __init imx_scu_driver_init(void) +{ + return platform_driver_register(&imx_scu_driver); +} +subsys_initcall_sync(imx_scu_driver_init); MODULE_AUTHOR("Dong Aisheng "); MODULE_DESCRIPTION("IMX SCU firmware protocol driver");