Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3684599rdh; Tue, 28 Nov 2023 00:26:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqckcbQM6+FjXtOoXkf6GfCMArBENOzpcDBsjsdGhdQxHYV0f2JZrm9i6lm7uaC54YtYUC X-Received: by 2002:a05:6a20:244b:b0:18c:d9:b413 with SMTP id t11-20020a056a20244b00b0018c00d9b413mr17093177pzc.5.1701160016936; Tue, 28 Nov 2023 00:26:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701160016; cv=pass; d=google.com; s=arc-20160816; b=GWLNIT0JaKQScJvLzr7U+E0N0LjQZ6WjzBYqs1HVWq/3h7E5K+nc6mqX9M+happQe8 q2NfpKWuFsYJHQwk0LZ4+YGyc5639Sv4sxBgXotA3LPhuJqRmhzcCTpojIpd2fzRvkL0 a6WmqPAKAPf+kiUx6cul4UeAuZkX1E/Hg9UTPwzjTJ+gffDif/eFaDFjxVoe1+CSDnsp lIYeLNfQbe368ulN78cRLi5Hx08dR7FFtj6QGN3xOnNtAK1QQSiYi4AxH3T0Ohn05uWw /bDrw/GhzZWoB1a6H7G6qUo4tVI1zK6BIRslRB/DJFKrQorYAknrWjaKbiTbjV8rLG62 O2lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=JTJlh2esIs0J3zdwZT62A3siivnz7gZnEojPswGLlvk=; fh=6mU1CVMPjiVT6Cc4vKbF4ctJDwKWJbXHJjlT1JsLGNc=; b=ogh1BzMPF3DcYrniawLlb5qPTaiToHwwvFXZmPmOmuJthaumS310X9miCnoWWK7++j 6+kM/0qYj/ua50xJ88ufWhEYAXLR2lHFmgcWueAJj5sXMB9ZIDzZ7pyTWa+vNnpyxTUI qaASafkfzjV8CNM/eWZJYUyD+NdNvEPJ3qby0cQoZuCk0XfMAMdAhn0oqPrU9rWNXAh3 NtL6bQLDccyngroBrV22eG3+seKpj2LYRZg3xojyVDqwKqoRVvtYDDVwGGQk6cTt7eAe ZDVMB0880wn+VfkInyqoXHC7HZnjy2gjW38igd9/PloE+K51yqhyEi2j0IBbRDCAX4XT hI7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Dq8fdjEH; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-wireless+bounces-146-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e189-20020a6369c6000000b005c252d169d7si11630891pgc.704.2023.11.28.00.26.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:26:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-146-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Dq8fdjEH; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-wireless+bounces-146-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EA485282215 for ; Tue, 28 Nov 2023 08:26:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F033918033; Tue, 28 Nov 2023 08:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Dq8fdjEH" X-Original-To: linux-wireless@vger.kernel.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2054.outbound.protection.outlook.com [40.107.14.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0295391; Tue, 28 Nov 2023 00:26:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bu4EAMEuhQ38wqWNZ/WJyCEBFqM0CVnmlVzdwKAkNKwje5mkCEfp8Uo2J1ZMKxhYlTsSW1lWUym2B18Pqgd+kLkDOTHE63133byWIu9hPQHGcsjLVWTlBb148rNpu5G/Fol4cJLXzL4rrwvjZ3x8q7/uMKisp+B9pdgJB5/A3qavZPvSCcZukycOEWJzkapgExIhXNVpW9SztWf0lcDZWV2M/G4/iwOBBcgJ3zEY8hELakPniW0nNX/3xfJ0NKPnDFVAZjMXLLkUkWtq1XC57jgzH1iMeUAKvvtXR8oMe6cHp8DymHZFJ2YBgNbasOeuDFzP0N3+f/fWI1LrJxnt5Q== 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=JTJlh2esIs0J3zdwZT62A3siivnz7gZnEojPswGLlvk=; b=LeWTHjlpLgLJcAQBhd6W0n2xxAvEqP3yE1aP8N4ok7FCcXBxcSw/B+Z4MTIf/PgCeMkP8sDNkYOaNFowSHzgLXHoW1+WSiZ3wmPuJwr8nWVRQCVR055nNWbv+S1WI5+npS4OmUtsi2aOsJQ1h6B1s/CYVrG+B3ibm9o6vFAYNnlkudWOrceQUsFOxbx5J8hAy9hQu2bffWUJGUrp3WQxR1pofl/OGJqKLcqH+CROcqDm7WRyH3HJ4pKXptaCrj7gxZ0JhPru+nsag0U4T6bjmDMBGTESbIP6DEM148i8qOFKRnQPMjgUQd4YXpv8cJmgdhjDXzx6+gCgwOfkyl7TEA== 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=JTJlh2esIs0J3zdwZT62A3siivnz7gZnEojPswGLlvk=; b=Dq8fdjEHrpN8TaVkPEPt8pkzhAZB24pKOQ4KBT6prMmwL7Svj92nvGjciAsullkSNn/snqYd1A1XxnmA4xEQDFzUk2inG2cq10Q0h4q/kRwaWodaK/wgyKO1OVIE7uqE7Pm873Z9NxwhFTx1oCbT+PZyfeTEhxkelOQFwul5lNg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) by PAXPR04MB8653.eurprd04.prod.outlook.com (2603:10a6:102:21c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.22; Tue, 28 Nov 2023 08:26:47 +0000 Received: from PA4PR04MB9638.eurprd04.prod.outlook.com ([fe80::34dd:289e:9e8b:9c9b]) by PA4PR04MB9638.eurprd04.prod.outlook.com ([fe80::34dd:289e:9e8b:9c9b%7]) with mapi id 15.20.7046.015; Tue, 28 Nov 2023 08:26:47 +0000 From: David Lin To: linux-wireless@vger.kernel.org Cc: linux-kernel@vger.kernel.org, briannorris@chromium.org, kvalo@kernel.org, francesco@dolcini.it, tsung-hsien.hsieh@nxp.com, David Lin Subject: [PATCH] wifi: mwifiex: added extra delay for firmware ready. Date: Tue, 28 Nov 2023 16:25:44 +0800 Message-Id: <20231128082544.613179-1-yu-hao.lin@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TYAPR03CA0004.apcprd03.prod.outlook.com (2603:1096:404:14::16) To PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9638:EE_|PAXPR04MB8653:EE_ X-MS-Office365-Filtering-Correlation-Id: e43a317b-4b2c-4654-659a-08dbefebc2da X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y3yFcHA2xnIi/ZVI65ZBi9Dp8tE5Y/4OJckVvpfoR9VqwP9Jw+r6peizFz9VOCJIr8HgIUQ+pp3ro1DPdKwwlTTUzc54HDxiSwW40CkkPUvCI33AXB3p+cOBZOkQcrbPfN0LNAjuBQOZrCZH+zFt7KIyhPWAi6hLxRPDSCn2r5nsik7p8rgc1UmyfX0GMxsTlHRUpsqf7OAcdnz8xUd6SVytNXe4LHrRcGdC3IcX9M+cjf9HIxxci7drnTxXMPZNqnXsCol0oJET/tCm2jP2mkzOmO6U69BXBkWXc56mnU7KBhDtGw9+hBHYtPXsFOkj6A6xMRwN4Ju6+6M5uppT/1RHzdGJoe+4028bHivFoxX7fo0sxAmpZGrZUtQOiHEIn5yBZWodoXhYcF9jxLnSarBRrdqOSD886GOvfA/+3lMYzW5B7YtWIqwR5Y1p3li7UQi05zOlAV7Q/+YPhD8PXj/rKIp/Rr9eMdc69ki2FIA7r1Rw3Zrc2I4Nd1wVN391PMEijXCSqK7Fw1j0gzIy8Hp07Vp0J+sIiPdve4IzpuEloy2dOpdTFuygWEKqIxij X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9638.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(366004)(39860400002)(136003)(396003)(346002)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(38100700002)(4744005)(2906002)(36756003)(41300700001)(86362001)(316002)(6916009)(66476007)(6666004)(66556008)(66946007)(52116002)(6486002)(6512007)(478600001)(1076003)(2616005)(6506007)(8936002)(8676002)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?pfpJbVgXLHM7YejGv+l969IZAhnFy/dqlfc6p0+IqPAYr+nXEsPqT3yFXye1?= =?us-ascii?Q?Oh/vqgeK4IcoVD6VNHZl4leBdHHZfwRud5yvuisYZWarPhAQpG/yY9ALKxUC?= =?us-ascii?Q?R5/XMYPD0+t9MV9YEbGLwepS1jinUoWCdiaRMcV2Q7DxWrwh1gKmTPyiplyo?= =?us-ascii?Q?hcIeDYZZLzVaasb87fn0yS1Sx/iARBAHRwxkCMgz6KR57eEvCjWWc+cUfZLb?= =?us-ascii?Q?DNe4TKUGqCu/iEQGZ5Q4t/5KkN37sFUVgvIytm+8kElcOQvK88a7MyxYRJSw?= =?us-ascii?Q?A8ulZH9a+joHgdV7apOOM0sNiCt7gh0nziCsNJoTv14ZjF9mOk/MyqVAf9a2?= =?us-ascii?Q?d7tpGboOpBQSCHdK0m8SQhe4M4sVK0yaIxYwzt3hjNxvp4yyxhY95Yi0hzeY?= =?us-ascii?Q?wmz8vh89P4h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D1//h?= =?us-ascii?Q?tC+UInmZXmeaWG2bnMWcQuo3niWcUuekp7BXbEa8qyvr2L4Vujs5L/4rMbyN?= =?us-ascii?Q?laWUjxHba37UutVTmtyJYmk6E9ICnn19thj06x7YEpHGzzXGcpKXkdblxA94?= =?us-ascii?Q?9+fgBmwfN0y8iTTVfWxijpKIdVvcFHfPWtmHTUKtmT6StdPVx6cyIETwCq6I?= =?us-ascii?Q?jDNswN7LCoAY5b1A1OUB48t4mUfMrXk+fXeiG2fsgazrHu8vYCS+HevmW8pF?= =?us-ascii?Q?OGcZrZEBoS3tYIYi3A+YqqzBcsLx4RfUQDR4x/IWk7I8BI81+atfvgixk8+f?= =?us-ascii?Q?temCMrCU8A1uOawStcT+UO2uM+bsBhLaj6qdELhMKY9g?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e43a317b-4b2c-4654-659a-08dbefebc2da X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2023 08:26:47.1790 (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: 3+Rz+52l2mqxYo8thzIBWuo3O4Q7y2Vql2JJ203ZzGKilqcJH1QPoou2HQcptPl0cuzQSG2HGIIuJxZtgysz4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8653 For SDIO IW416, in a corner case FW may return ready before complete full initialization. Command timeout may occur at driver load after reboot. Workaround by adding 100ms delay at checking FW status. Signed-off-by: David Lin --- drivers/net/wireless/marvell/mwifiex/sdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c index 6462a0ffe698..744e9403430a 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -783,6 +783,9 @@ static int mwifiex_check_fw_status(struct mwifiex_adapter *adapter, ret = -1; } + if (!ret) + msleep(100); + return ret; } base-commit: 783004b6dbda2cfe9a552a4cc9c1d168a2068f6c -- 2.25.1