Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1185933rwd; Wed, 31 May 2023 10:30:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6lR0Ek4p6KVAZx6ZW3p0QgkY14OWzN6Nb6aI+WnGwW9PRrcmSOcepKQksiTgGQJerAQu9z X-Received: by 2002:a05:6358:c23:b0:127:7e69:d3c0 with SMTP id f35-20020a0563580c2300b001277e69d3c0mr2960142rwj.11.1685554202660; Wed, 31 May 2023 10:30:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685554202; cv=pass; d=google.com; s=arc-20160816; b=I5eCqSnhfEayBqCJ/Rt4bx1osP6zuDTBOVlmPaUnjfV5CFwS2vwmRQ79agR8T4/5r2 uW7sJcfSSMgGoeeaD23yCtV0ZAGSjqG1rYtSc2NW5x5yJCvte7gG5djej16+Cv/qHh26 keYp0LVfEKkh9VKooMnjK0C+2Uwfjn4/TVUD1lz20H6+32lq5/3HdTD1fIqhLk5+Up9c lxWoCHM+G1Kz5y7Y8QhWhDHfJqT6vB3Bj7qJ0zOQygmkhZvAx1Vv6kCe02/xGFALlk9w Rc14dGQiJf0EXKZhnqOIeHXJMG3jgyCZ7awREX8xd/wgK7asrQ/XSjikbTH488Qu3K93 SwZg== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=OAQoaaKTNB7/pLLiSk48ZmUcRs17qZh/7YqmxP036zQ=; b=iIiyMCjC8h8Og+2yO9rDv8TmJPHmIAlecbrtsd5STfjdGIy/N3QTB/QGv6pz+f5Av3 T53ntRh9NSLO/7/KwZXAKtorfheGyuOP/B+xkwuGv+TiOv7vZfR1//8ZfamwEG2xhj3h uEH4jN8kZ5tLhe5afso8er9Z5NAGtWKIxm9NGO8PbNyILXroOxni2qbSdSivOX5aMy49 ho4HvE28o+k57tl3fMnMgMackQg8VgDLZQwsXRw8MVCvnBWgFchGySg1l8P4H46gSMcS CQowKPwgTJsAbFxvjgmJOUhM2VUAJyouqrU0/oKqKrxpkyJFiBpRANx/sRAoKGuB5Dqd LuiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=gYi56EeE; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector2-microchiptechnology-onmicrosoft-com header.b=LEEwbEOD; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a631753000000b0053f8327e0e3si1248579pgx.668.2023.05.31.10.29.49; Wed, 31 May 2023 10:30:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@microchip.com header.s=mchp header.b=gYi56EeE; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector2-microchiptechnology-onmicrosoft-com header.b=LEEwbEOD; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbjEaR0w (ORCPT + 65 others); Wed, 31 May 2023 13:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbjEaR0u (ORCPT ); Wed, 31 May 2023 13:26:50 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C8E2B3 for ; Wed, 31 May 2023 10:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1685554008; x=1717090008; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=OAQoaaKTNB7/pLLiSk48ZmUcRs17qZh/7YqmxP036zQ=; b=gYi56EeESKyH7lu43BdFZdalmNWgHd4NiGz7N0Gbv0pttUbC1qTMjdli UzDJw1RvGzCt9IhX5Sg1G0xQMgYFo6kopj9pAsI/Fr2ro2UTJBmUcby/v RVBT3BM90XJwpZLNTq3oP4mlUP3KwCON+upGXlcUhkOcEEn1dG2YQQLqP /CTS9X8+dZlrE+21RHh1JRu6k72vNdAQwHqn9aDf4vQl8rfz3cr2l1aUe J+VI08TnT8WFhxTmev/+kCcRzqpAg+cp9G9Gsm7dZsbcl35ynoJwjBmlE L2qSBtC4PLVlqWaXwV+Kxs0DNuivMkFSpVpQPjOHXb0FrxFt9uJ3C625q g==; X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="154888022" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 31 May 2023 10:26:47 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 31 May 2023 10:26:42 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Wed, 31 May 2023 10:26:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C+D7H77lTgCH7+Xg2liUIY18ejrGD+VPTrDr+OtqNJN3w8vZICOpELRqw1oLHX7AYvZ/Ej3/xvNNEzDIWykK+uUFowrAgyZl0onabuFk/4zjOVy1Nu7MkSB1z52DWTPxBRuJ0SN1YRpt/pLEF72At5P1yKptPQU29jvVJg/PdFtgdXZuvvAyyTtYBXvtlpnN5CB3DvoCkEp7gZnb/nSk/ksIsy6RMbeHXl0E7fbRgn4luI6Rk+oJxDUpLHtDwuWbtcLHgnXs0n97KmjvuOwGyu6No+j6x37Yoo+l7m0q4PbyBIhcVx16gn0fybacCiF1yXnd/vhQ3azEL/2GmO4iog== 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=OAQoaaKTNB7/pLLiSk48ZmUcRs17qZh/7YqmxP036zQ=; b=nXaldDDMteKxEQ2YGJ6+uFurrQO5ZJveallprhv0lULh59v1WSxzWBG58pQpOpQWZnjVe/b3uikvKLaF62TYsDXRV4nyG9LUpxBPtdyCepXSuctiQ5rhm4ZdndagILOwfoXhIcW2yJsID+ps1mp7rBDlbj1TbcU9lSLCfpA5E1krRX7SYeH+A6Zkmt+FuXYv6LVD9C+VRT4bCBZbm0+aM1nlrV0ee5OCEuA4gwWtPolGZHWYUVwHCakmZr99uhVgg0UzoQU+RfOnhHKIfHdMmw/pU13emlWDIbB1QMOaNYF4kH3+PB60ou5SCphCUi53g0Sia2n8R2oBPdsx8oMubw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OAQoaaKTNB7/pLLiSk48ZmUcRs17qZh/7YqmxP036zQ=; b=LEEwbEODPd6blDxAbqI+cCJKS2rvd5WTzlItKkEv/CPQw9dsTC/mlYSd6uMLUnSyHdE3Uvsci2NTOEteo2IV6LsuX+/w00ZCCsqqpgCnFTW6hL6KxPW+KkMCzSfXnUrikQpcgKXE3yOIcRE5PZW1VuFLQBxY3SBkmfcsIgQNXTQ= Received: from CY8PR11MB7393.namprd11.prod.outlook.com (2603:10b6:930:84::18) by SJ2PR11MB7475.namprd11.prod.outlook.com (2603:10b6:a03:4c9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.22; Wed, 31 May 2023 17:26:40 +0000 Received: from CY8PR11MB7393.namprd11.prod.outlook.com ([fe80::120a:e19e:e1d9:4711]) by CY8PR11MB7393.namprd11.prod.outlook.com ([fe80::120a:e19e:e1d9:4711%7]) with mapi id 15.20.6433.024; Wed, 31 May 2023 17:26:40 +0000 From: To: CC: , , Subject: Re: [PATCH] wifi: wilc1000: add SPI commands retry mechanism Thread-Topic: [PATCH] wifi: wilc1000: add SPI commands retry mechanism Thread-Index: AQHZjzU2TDHO/Hut7kWwqno7z6RMD69uNU6AgAZ2ZYA= Date: Wed, 31 May 2023 17:26:40 +0000 Message-ID: <6b95f062-3d3c-46f1-d9b4-8b54eafb9e40@microchip.com> References: <20230525181739.30063-1-amisha.patel@microchip.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CY8PR11MB7393:EE_|SJ2PR11MB7475:EE_ x-ms-office365-filtering-correlation-id: 4c9b1e3e-0d96-42e2-cf9a-08db61fc320e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sLJh9+H9Ry3Xc3uyZotJ/K14+YYM43/MOkcuGCLbX/gb1VZ8SH6L09eWNEEQGtogKVkhz4zujxF3XhyihYuc/z0/7pYCfn/oTIY2qbYRFilWPNUw5mCcdIwJX4rXKhzCJQl3XJeWlOxVszy/H1rKy1YehmjA8e5UeyZGb3/RljmPl9iRWgYBkMyIeKs+TJAbD4Wh6bgNmycg/784ZB4l0wBxfP9d3qKY9XLTn8vXbbE1jk7OF8uouPDl11zQet4MwcDHOG3aJHVCimhZMqckr3yDqd5YUxhCk2A8PwBme/X7XfyKwDPn4rIvX6cuerF9YDftzy9FcbAtgi/Aq11gKC5l64af2WK4f2Kt7bJ2vuoLZaV4qjKaxU+SNNAc9hMUE+CBWH8oag8hfVpD45+U1yE5sbqd33he5XMtVMNxvMK5/iUMOcDT1d+PEQJx7NEXGfZXfENm3R5Vjs7ygX+MHViUF2hT6pz9zEn/esOZz+pDrInOp/tt2CGLdXaC4YCUxfZlq+WQSPuqwxmMtgR1zw6sSBcCJvtq5xFX5s+IFcvjh/6c6uyUR9y0EpOAL5z7TbXnYBycfnlen+vAx5iSC+I/GCVBQ5lBZ0lDp84/SVxecgov5mkvPENQPG7MtthhyFppjFwe7ndwWotJtcblGA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY8PR11MB7393.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(396003)(376002)(346002)(366004)(39860400002)(451199021)(478600001)(186003)(5660300002)(83380400001)(71200400001)(6916009)(4326008)(86362001)(6486002)(8676002)(2906002)(8936002)(41300700001)(31696002)(122000001)(38100700002)(31686004)(6512007)(38070700005)(316002)(6506007)(26005)(2616005)(107886003)(76116006)(66946007)(91956017)(54906003)(66446008)(36756003)(66556008)(64756008)(53546011)(66476007)(45980500001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cW5UVlBPejBSMUZKNW9rMUgyb2V2RDRvRFYzYmhHemNxMzN5b2VpRkFtNk1X?= =?utf-8?B?N2szR21DWktlSW5NM3RZTndzVFNocmx1bFRvNFJncVJtZUZlMmVwU2w0cXhH?= =?utf-8?B?WDZreHZJSmx3WC85czJKWmRiZHhhS1psMlhsbjJiS3FRVUg2OUtWbGZEdVpa?= =?utf-8?B?VDBBcjIycUM1ZE5NV1gwWGFzZy9RR1hJSG9salhqc0dHa0tTbHlnQklUNVcx?= =?utf-8?B?N0Qra1ZuMUluRUYra3hGeTN6U1Z1RkVwU1dGUVZrbk5PRUJSRU1CSWJwRmhh?= =?utf-8?B?MnYzWVZ3aWNLb1hsQ0kwOGQwR0orbHl1bG11RzNaRVFjTXBpQ2dlL09Ddmxx?= =?utf-8?B?OEdCR0dEU0UwU3NoUmQrYXBTeHFsRUZpaVI1dUhxSGpZckV0RTdmb2lGZUgz?= =?utf-8?B?QmhxL3Y2N3NWVmdHZDZjZnBVYnA0cUxqS2dodVJsZm5Ob1ZVU0dNODZjQ25K?= =?utf-8?B?eEhoR2tsRmxKUG84Zm9TWExKdFpsdmVQdVZmcWdmbitHSnBJVU90QWZFcUtJ?= =?utf-8?B?Y1FaS0h4TkhkL0JrbDBRVml0UHl6bjhzeHYxamtZemg5RjkxaWcyRnAxRzNB?= =?utf-8?B?bnhnY0xueXoybzZYOGQwTWxvSFNyZW5YSmE2S09aemdpNEtwNC95YXZ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TEdFZG9VRXBjdC90dzErTnF2?= =?utf-8?B?MXg0ZHFZaEh2RXhSUVNFVitsU3F0UGZmVzZIK1NCTmEvTDJ2bUV0RHAzWVZH?= =?utf-8?B?MlEybDV2aDRKU3pXdUJjdU8xUlJCUXVJSmNad08wVFpUbFFCa0UxblY3NDJm?= =?utf-8?B?MlZ6TXZ1U2VZQXprd0g3c1o2dGt0d0hsd1R3bk5Gcit5WkRiNUVTT1ZPSDg5?= =?utf-8?B?aDB5cXVjMzZPbjVOMkI5S1pSMnZnYS9BaWNvNlByeVlkekk3NmxZYmQ0bG9X?= =?utf-8?B?a0ZrZUxPeml3UlJQaDBubUdvOTYwRnorc2ZEM21ydWpZdlREVmxqTlVpRDdo?= =?utf-8?B?TmgrRjh2SmdFYmlQMXloNDl4ZGxxZy91N1YzZm5PbGNJY1Q3dGVhamdIN0lw?= =?utf-8?B?blZ3UnBRRmI3VkZlK2llR3FoOW1tbFpKa0JuSWYvKyttbFl2clJVZFU2RUNw?= =?utf-8?B?K1k0NmRpb3dKanVISjNLSDZsOTc0OEVFdzNwVElDV1hmbUt4dVpmK2s4K3ox?= =?utf-8?B?MjZhOTF2WDJveWdjZ3oxZWlDekQ0SDY1QjAwM3VNMzFwTGU5aW5RMmN5UTNT?= =?utf-8?B?RTRMQTVEUG5UOEtrNTFhalE3dU43UlhvaFhmZXc2dXFIMDFDYWw1Sk1kSW5K?= =?utf-8?B?OUE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <83C442883762C44E879049CC02FF2CE8@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY8PR11MB7393.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c9b1e3e-0d96-42e2-cf9a-08db61fc320e X-MS-Exchange-CrossTenant-originalarrivaltime: 31 May 2023 17:26:40.2047 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DNqCASpcXmPRG3G+QrZW8N10aL3bRVwIjdP0+xatyXa8ocKPUF1FMw/xYiPlA87YKZ6sov66Mf5+kus9wQzwVMhSnXloHHlqG5HTUaiHvmY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB7475 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-wireless@vger.kernel.org SGkgU2ltb24sDQoNCg0KT24gNS8yNy8yMyAxMDo0NSwgU2ltb24gSG9ybWFuIHdyb3RlOg0KPiBF WFRFUk5BTCBFTUFJTDogRG8gbm90IGNsaWNrIGxpbmtzIG9yIG9wZW4gYXR0YWNobWVudHMgdW5s ZXNzIHlvdSBrbm93IHRoZSBjb250ZW50IGlzIHNhZmUNCj4gDQo+IE9uIFRodSwgTWF5IDI1LCAy MDIzIGF0IDA2OjE3OjQ4UE0gKzAwMDAsIEFtaXNoYS5QYXRlbEBtaWNyb2NoaXAuY29tIHdyb3Rl Og0KPj4gRnJvbTogQW1pc2hhIFBhdGVsIDxhbWlzaGEucGF0ZWxAbWljcm9jaGlwLmNvbT4NCj4+ DQo+PiBJbiBzb21lIHNpdHVhdGlvbnMgbGlrZSwgY2hpcCB3YWtlLXVwIHdpdGggcG93ZXJzYXZl IGVuYWJsZWQsIFNQSQ0KPj4gY29tbWFuZHMgYXJlIGZhaWxpbmcgdGVtcG9yYXJpbHkuIFJla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