From patchwork Fri Oct 20 03:35:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lin X-Patchwork-Id: 13430004 X-Patchwork-Delegate: kvalo@adurom.com 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 EED51CDB474 for ; Fri, 20 Oct 2023 03:36:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346973AbjJTDgE (ORCPT ); Thu, 19 Oct 2023 23:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346901AbjJTDfv (ORCPT ); Thu, 19 Oct 2023 23:35:51 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2063.outbound.protection.outlook.com [40.107.241.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D1B0D69; Thu, 19 Oct 2023 20:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=akgkk9ad2o9UFEg1wfCX6Z5vqaiq1L0uqW0jBbtPgdAys6E6RwJ4EsVuxFpa8A8CAx8pMetc1Uk7jyv7f0nGfriex7ybTWjo+6j2CVqI6ROSpQZWII7m13JeEFO88AD4qYPVR37WA4Iw/QpRq6H0GXt80cTFp3rCrn24qHIKNVr3FzgffB8SojA2FU+2VPIcZDWlzTystx/W6vzCVQBfJNjp1Jn1aGOUKhu4/qTUSi05/AK67dwBETSo0PiEj+TgpsN7vgRXamDpsL15tuHV0yQX94pSoQ5xr+HtVQdmYznkTJBYQH8EUSGWnOK7vo7HTtHyJN+pJ0PGPpSwHZMJSQ== 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=23I+RoPY5BALM+f56SxYVPomzZ4KXsvBoLB101tJF/Q=; b=C9h1v5Xwala1BP9JU7G7V6Ndf5AU9dgcammM+zFTTRL79CmJRJE3TkmcI+N8cpKsTAvsElnWv9zIgbqq+G1jN27i9mxSWQElE9994sMzbCjtdwScL7MB29KU03MExbJ4481hLdeN6I8XNghaDYawhhoIpo0meR7vQ5JqlG1FuxbR4M9muCK+V2+TUeej8B2ACM8ZpGi+Pg8a2YDQPGTbL7nek2r/YsgVBMWxq/2/T+4CS1+yN817M6hPVfSzQksqxqp4xYuadug4GuGccbxOwcYtAMX/UaCxO3UQ7gNGBNSDhBlxa6ATdwem1WF+QH44iUAC0GszQ2Fb7F9ATXrAsA== 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=23I+RoPY5BALM+f56SxYVPomzZ4KXsvBoLB101tJF/Q=; b=FJCf+pyGSYk/io4Kw40UldeXDAf7ARSdGDNx7qDJJOHLxPkT3/rfzTYOnCaUpcCS6XJ+2IsqyvJrlXeHqJ3V+Yb+jrL0zGSvKleNsG7GPqT8c1e3vKKXKVjpo44GrwxqlQLtaxlUO5bkj4Ur73rLgOmRpkCCnK2C4OD807IqKeM= Received: from PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) by PR3PR04MB7306.eurprd04.prod.outlook.com (2603:10a6:102:81::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.11; Fri, 20 Oct 2023 03:35:34 +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.6933.011; Fri, 20 Oct 2023 03:35:34 +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" , Sharvari Harisangam , David Lin , Pete Hsieh Subject: [PATCH] wifi: mwifiex: added delay after firmware downloaded. Thread-Topic: [PATCH] wifi: mwifiex: added delay after firmware downloaded. Thread-Index: AdoDBnqsYZDxfBp+Q3Wpq1CAkxdKPA== Date: Fri, 20 Oct 2023 03:35:34 +0000 Message-ID: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA4PR04MB9638:EE_|PR3PR04MB7306:EE_ x-ms-office365-filtering-correlation-id: 287ce613-cc31-48ed-4edd-08dbd11d9e36 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: l7MNsLdgo43FiGLOLdqe6q/lRy7fiUv781eMpjioYcpzTX4IeA00Gy8zAVw7l6MefwEH/oW5nJlqiEib4KjMN2zkaav3YxcDhAamj89bYhoJYsjFJbnY4ZCi6ZRrAECMqs/3q1CJoiUQZYo6anFtA71pFtYWS8nMn/uOFajIfmFfvs7RReMRMWhDI51HowfpTVQ5Ptijs3BnWpHmWptmGF+KD2sQPS4R770sMPVeXyN1JT4/ECgm09yDjpONam06SNSBOvBiyqaNvcnKGxjk/mgZRTfJzY2YDFukOiLRMAywg9zLwBW0sEldp8K3OesHtkbEgepg9ytyN7Be2uujedEGhIwEJzDhuYC+gJ2M1K/n7TYnYgmDYOLt0M5fsLRaLYRj5G4ISvjMXetfIs0QtOh7v57usmTJE1cCvX4OK0YFRiHcuQQXOZkWr09cveAi0C4Yg4+WgMu24bR0uOn3N9qY/JnV3cDKmQjA7f4/oD5mA5CwSoEYl/CAGH7q5crTn8fdIMa/th/fkHyf9GTvDRPtTAhjtgXv1jMZANS3NgvZFgHnrbxQnUrpZgFh9MIYyTGNKLwhd2BVy6TltaWvDsjcy3FqrzdVcASRdXXVCHDI+R0pWjVOxIxRqDbWmOrK 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)(39860400002)(376002)(396003)(366004)(346002)(136003)(230922051799003)(64100799003)(186009)(451199024)(1800799009)(478600001)(26005)(7696005)(9686003)(83380400001)(6506007)(122000001)(38100700002)(33656002)(71200400001)(66446008)(6916009)(66946007)(66556008)(66476007)(54906003)(64756008)(316002)(76116006)(41300700001)(52536014)(86362001)(38070700009)(5660300002)(8936002)(8676002)(4326008)(55016003)(2906002)(4744005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 8yO/0ygfzanXGbUkrlKmY2LZ5zs4AunHg0Fw5DkUVApf2rk7zAEJkiwdCojS6IUd8QSM+QiNc9JRgumJKWbVhwmeyZ8R2CGd8AIiLBZBqCYDdOlniga8SZq8vQDeV0tsnAD5zKw8q7AL+xGWdnaRPyI+rPKJ91dsPq4Z/CVtjcARe3Hbhm9t2em1pGZj8zVp+bVy5DmnN3xd/GeSQZbWGy0qpSFVgXD3T3MCSOEB9Vhpp3AFHPyL3cWV0CwnyMuK1HNa7s3ysEqfoTUf7D/IQXHfyNLj26bWeczxCkmKzppJR70guDPS/pvII4m04T7hm1yu7DTYhN37U4s7t1n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ka5ypM/1nJX65dx4RZTCj0qAiTow+NEEC9BXG5c18MFPYJpPALapgH6S/O2tHa05VPGSNnggUQmsUx+pAvNK0wzmWf/+saHUYy/HeuxsVsomkX8nOjSdq310HqnU3YPhW38zuQa22TNWVAjPIOsZN9uqLd2x8okHPKJvVNwIE7cXk8bv+jwJ3U MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 287ce613-cc31-48ed-4edd-08dbd11d9e36 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2023 03:35:34.1305 (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: fy86WjVXPKwUq0k7FdcRUSzeBd1Vm75GTvGZpJAiSjbJfxIssYTcmETsCrPzyWVQCyNuukVhvsCk71+KTnCCuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7306 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Added 100 ms delayed after firmware is downloaded and active in order to avoid command timeout for the first command sent to firmware. Signed-off-by: David Lin --- drivers/net/wireless/marvell/mwifiex/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c index d99127dc466e..a25e8bb8daec 100644 --- a/drivers/net/wireless/marvell/mwifiex/main.c +++ b/drivers/net/wireless/marvell/mwifiex/main.c @@ -570,6 +570,7 @@ static int _mwifiex_fw_dpc(const struct firmware *firmware, void *context) goto err_dnld_fw; mwifiex_dbg(adapter, MSG, "WLAN FW is active\n"); + mdelay(100); if (cal_data_cfg) { if ((request_firmware(&adapter->cal_data, cal_data_cfg,