From patchwork Mon Jul 31 09:04:41 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: 128544 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1909988vqg; Mon, 31 Jul 2023 03:06:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKYKuHUcRf762jwYZeiz0pQ+TDrvfRioI75S4fgbKz0ipESAp+ZFlEDwxpQXSOnRRRoGvC X-Received: by 2002:a05:6a00:2d0f:b0:668:8ad5:778f with SMTP id fa15-20020a056a002d0f00b006688ad5778fmr11589779pfb.17.1690798007721; Mon, 31 Jul 2023 03:06:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690798007; cv=pass; d=google.com; s=arc-20160816; b=vSbWXWFGC9IP6oQDgJcfWDyfm/ISpLa8lRI9whnV7eiLQTIDdDW/rFU8p5EKxxGCdz IJlpMkGRpIdcOGa6BbQwHSnJ1IJLxV940/Q6F7Wn1vGHaM0hPPFHOQBW4hQxE39ppo9h SrVwV0vv2v7QRBJlsKqch/0Wl1FbnocIVIX3UNsMc+PYfKwZaXuGqlrm9ewKQO4XQpeS eEHFMdNWr4w5P1hkSgfsxie8O6I6/Uz61wHoCot7YF+VRAotyOdtqRPbzKMpXYb+utNW ayDXZ/lXHrt55SH4cZiZiPrVOJ1Qv3h4N/E4T8nHZCz4gLOpNcRxuPQ07H9FzyfzVpyu OaJA== 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=yJlz2rB3rtmAwzoekTC+iC70QJubd6CTgfRbd5gHcedpwOftN+dbecJBBqAEA0+LW2 0NIXoFJE0Jdsi5yh4i8d18ydK/H1JvKqDLcYDT1oyE19AwrYdWKvTwODeMeP32mn4J31 B6YTF8SFBYRa2U3DZyHZV0vazv1MH4TidFVIHamwrFNgxuG4XPZC3KVamANinUr6gaNg lHFBXpHa5K73fRE06HNjdaG4wCSlosczA9NUvBelNPwYm2/QrdF5B6l0khYRpZMF1wGB G9bvTAll0oyQeUd7vCa+PO/XxjBXYv06iZuwAYl3T03OwsK7xg5v1sp8jogF1b5TamDW YorQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hJGPSNLc; 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 t4-20020a63f344000000b0055b635b788fsi6530754pgj.199.2023.07.31.03.06.34; Mon, 31 Jul 2023 03:06:47 -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=hJGPSNLc; 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 S230371AbjGaJAU (ORCPT + 99 others); Mon, 31 Jul 2023 05:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbjGaJAL (ORCPT ); Mon, 31 Jul 2023 05:00:11 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2088.outbound.protection.outlook.com [40.107.7.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 116CFB7 for ; Mon, 31 Jul 2023 02:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D2O21rf3mq1RhW8uQ7eVLMTzpBQN1Rce66IPRWVICzEGQ++A3ibNPOTyTn4syxPcWBbLMdreGzk9ReIoLKlrfIkOtR/LIL8SBNSWAYyuRucqkcDTS0SXPfEvzgQ7mQY8mkTknUKko8ugV3d2vbkaGFqnbOdAVdZ4awKPO4qL2ZDX3QCFl4Tnblu/4lTZhOPKCf3r+WnPkgfnBSs+Bo/MT4cH2B1kNnRnsZBl1CNC/7TsuRDEUON8mKK7a7nW3YtNnceCswy0/9F4IGaD2q9/QBIG9vAHHaytDYDnFdK9NnRPNY3Nhxh7iQxXf4a+BCqXMKs7D9ojOllINsqCIHUyFQ== 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=f5EuG5TbIG0B3TTQdv/qFRgWwZ8Z26R6jgy7YMFwq6JVnWG5ypv5zeVV0QP1pIhATdkNEbSX3h2IDWIS5zVkD5iqa0n8rUw7wGwlpTykE59qC42MIMBDCmgeQOdhP0HySHDswrmKKPa/8fCmSXgC6ZJZQLlOW84asLj6bNKBO85F8scrk4KvByLzFZWMO0gPx5ItNRnwRnNvtz5ZgA8pES1vgTI3/qaqQrtn1mopdsCZ9Xlysw9fAoQoLE+8CutSvPtxrk4MeE5Z3qqR/Go88J5dqtdHIvnTt9ipuYrmm5O8D2Jvx50PTDcEnxmp1HloZ8k3hFNien0OxAfStl9kNQ== 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=hJGPSNLcbzMcrecUPnw4XcbeBHp/7Fpx8NWP5zDo67TdD2T8QkdRvbmZHDRKqqp1MAkiMHUCHe30obB8RBMFAbxp1tTIPBqK+Re7qM6XxR+uBMHjk9niBvpUXz8TORXoK7RjwJQK3e2qGTjP5PwgmKwVGfhKpJVMIl8oj6GG2sw= 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 AS8PR04MB8229.eurprd04.prod.outlook.com (2603:10a6:20b:3b3::11) 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 09:00:07 +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 09:00:07 +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 V5 1/9] firmware: imx: scu: change init level to subsys_initcall_sync Date: Mon, 31 Jul 2023 17:04:41 +0800 Message-Id: <20230731090449.2845997-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230731090449.2845997-1-peng.fan@oss.nxp.com> References: <20230731090449.2845997-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR02CA0128.apcprd02.prod.outlook.com (2603:1096:4:188::20) 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_|AS8PR04MB8229:EE_ X-MS-Office365-Filtering-Correlation-Id: f431d2ea-569e-4454-b767-08db91a48943 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: 8K5uVdMBqS6487sE2Nc371n5kl7TgzxuKHkcuizZ12iCwNLkx5Yfty+6NTvm9oULtLDrDUJWO1YyLl9jC+L5dgMZvIcruhVilWaZ7SX+TBYyD67UwTz99GWCqfinRJ6ZhCUz/nCRzo45WN1yyuV2/mJjnM65Qz6fWXwvJ90caz5sZnCXVgZlIlhpt4csC1RlWEb9asuik+TacVCgJ3b983udLvNgvPGGHnU/JzfYhM01X/UBxco5SN+5k96objwOAFwGjx5oys1WY9doeIG9Kwy97GaM/cCs6TDWD2W4FSCJbVo/O6MyEVVzYJxKy45Gag+4pEFamuB5lAsEwlSwrUn7BBFbGrDiNboElJm48vYrpp8XJgek2HxEdws5YE0DMKWlSO4k6cfoNywfskTnZj+B9Ytnp492cIDFTyj88pXkZkYUhvgEz98XXKgiZ85bDB9GZPygZc0RMKeNUQc1w+PMdRSnX8qJETt3mINhkWa4HBqsc4drL1jeCvpalxMS/o7I4JSSQUbD0FCyy6tLYnh4pZX4Flfan2SVKhTmCF9t8UwQjy3N+ZpsrugJkzUI1KdHqEQYLKu0bbuM5GLWqsWf84NIHAJ9pBYY+53vkeq1+ZDvgUC/kqXXo5RycR2A 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)(366004)(346002)(39860400002)(396003)(136003)(376002)(451199021)(6512007)(6486002)(52116002)(2616005)(6506007)(1076003)(26005)(83380400001)(186003)(66946007)(66556008)(38350700002)(41300700001)(86362001)(66476007)(316002)(4326008)(5660300002)(8676002)(8936002)(38100700002)(2906002)(6666004)(478600001)(4744005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jW8u3CF0c0Nl5tXFpPm4DZphYEHO/9vGxiixir3/0naUUVHZSuhrdDo8PDNTyKBIjcNc7Si1HMQJa53fY9Wli/Ro0TkCCjCdp8bm/Jy1eFrx3KFdnZIhqnHJp+bFiB0zgzZei9TUBHyIL1p6lvWGPfG4q/69t578cwi8ddjyKsBaVS9bEfF57dvJKHVAVQxtk36/DhUUGwJMQqae3Xzo/VA89YOX01OsUoeg+i7JM9860vHSX2uorypqSu8t13K4eWZ4x9vVZrQ8bDiwrnJjCUJqQ3SaLSjSwF1uwASOl3G/sfTeme8JB4Yl3SG5K7OCEfehS5uWmhTH6ILILjbIDWEk2DQBwXvYQtZJCzL9vBDEx7ofZ+vEl+rE40wTjLxwZWCvv0gqITJ9TRVArkzT/Lc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AdPMs2hrARXXtuW+niN+kVfIZmm5EZmqIErdHLqm/+7xpVmnXhI4qwMbZ0f28ylaAJWTr6iq1TRDZn9aQQ0v1GyknwtNMrbmcntYaygE4Lt8 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f431d2ea-569e-4454-b767-08db91a48943 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2023 09:00:07.0075 (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: WES/0+ICOqiUd82YunqQ5slJDeFuJDryC3zxkJuBu7GmwBe5VWBBZLfnXyW/nilYqw89aEfPK9/q5lVWn9Sobg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8229 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: 1772930211728669685 X-GMAIL-MSGID: 1772930211728669685 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");