Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2515319pxb; Sun, 8 Nov 2020 03:32:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmPkN+hbqIQxDXwadzvgoiEB9mFt0Cj0EhJQfSGoAp2zCNN/KG1IFSq+lNKpuBmY8L9pnG X-Received: by 2002:a17:906:a843:: with SMTP id dx3mr10755772ejb.313.1604835152659; Sun, 08 Nov 2020 03:32:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604835152; cv=none; d=google.com; s=arc-20160816; b=G7liuZ5hlXWKp9kW2jmAJadfnCsA1y6puDliCL3DZsX2VJJlBghTAyc2HIYnOsFpZI 2BM9aIM5fprpHwYWHFFtn6vNg9zngbqDrZ5+DxfNf5fuaDau0be9nIJZlQkvl4Lt3eTH wr1irFOHKLibGtj56necsZUD6ykhFnYhdevrwESwpZs1ui9lLB1hV/D8p+eQocuSNrPj DBx/wOcKupM41Y8xPm984NDpgG7LXm8fNHEMVa57oUtwmHTMWZGiZjnTnwIGHWP6hJKn KYwSjAfIQpDMyx171/yEa0VxICdbs9V4TOzce2pj5dM8rfz1t6zBR7WKmKfRytGb5f1g iIbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=Hh80t6DBe3X7mbuwvXT2qT4O+qR89/NR5LLrWLjb7W8=; b=bpEGTC0bwAm3Uh/KQYZf6JMlu/jEuEgLCxvxVVTOLQvfjgWFE43FweJnMRooI2kg8o tAsj064XRxoIYm9OPNIvG4jzxgCHht4Dckzh64TGyekFaJF35wF3xGtemajsTwNgg0ai Nqo3f/NZwejp6xcBW+/rytE6sdJSyMqxD1r29DPUWGhY3n1pUTfOUaS4yottytiCfzq0 PTVj56wUpqeQGWQyFqt2avGw5f+injUDcFuWu6QBN1HEfhYGCP56s5DJs5egs+f8V4s9 IsG5sPZVM9zWy26o/xryAUjEoFk88T5aLRhxiVXQDY9QuaPagT+tfg4ts+DN9s9NsPjw lTow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="f9oMDpZ/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si5353239edj.45.2020.11.08.03.32.08; Sun, 08 Nov 2020 03:32:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="f9oMDpZ/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728249AbgKHLcF (ORCPT + 99 others); Sun, 8 Nov 2020 06:32:05 -0500 Received: from m42-4.mailgun.net ([69.72.42.4]:15232 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727348AbgKHLcF (ORCPT ); Sun, 8 Nov 2020 06:32:05 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604835124; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=Hh80t6DBe3X7mbuwvXT2qT4O+qR89/NR5LLrWLjb7W8=; b=f9oMDpZ/aY8vpDlfCTcTv40B5aToSuONm29uL5OQ0S7ndvmuz2LCcEM4XqsSDHtsCFfz9MyP xdx2p3s7n095+BOFeZ4Mp9VdfJnDagFTrhnFJwUvBKkUPwoSwZGcxL9UsbC6R+fmYcKvGGVl aKwAt38hgIZbt65NmRQnl/bCOzM= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 5fa7d73160d947565276bf75 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sun, 08 Nov 2020 11:32:01 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 96F5AC433F0; Sun, 8 Nov 2020 11:32:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tynnyri.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2A982C433C6; Sun, 8 Nov 2020 11:31:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2A982C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Tsuchiya Yuto Cc: Amitkumar Karwar , Ganapathi Bhat , Xinming Hu , Kalle Valo , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz , Andy Shevchenko , verdre@v0yd.nl Subject: Re: [PATCH 1/2] mwifiex: fix mwifiex_shutdown_sw() causing sw reset failure References: <20201028142110.18144-1-kitakar@gmail.com> <20201028142110.18144-2-kitakar@gmail.com> Date: Sun, 08 Nov 2020 13:31:55 +0200 In-Reply-To: <20201028142110.18144-2-kitakar@gmail.com> (Tsuchiya Yuto's message of "Wed, 28 Oct 2020 23:21:09 +0900") Message-ID: <87pn4o5bkk.fsf@tynnyri.adurom.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Tsuchiya Yuto writes: > When FLR is performed but without fw reset for some reasons (e.g. on > Surface devices, fw reset requires another quirk), it fails to reset > properly. You can trigger the issue on such devices via debugfs entry > for reset: > > $ echo 1 | sudo tee /sys/kernel/debug/mwifiex/mlan0/reset > > and the resulting dmesg log: > > [ 45.740508] mwifiex_pcie 0000:03:00.0: Resetting per request > [ 45.742937] mwifiex_pcie 0000:03:00.0: info: successfully disconnected from [BSSID]: reason code 3 > [ 45.744666] mwifiex_pcie 0000:03:00.0: info: shutdown mwifiex... > [ 45.751530] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed > [ 45.751539] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed > [ 45.771691] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed > [ 45.771695] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [ 45.771697] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed > [ 45.771698] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [ 45.771699] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed > [ 45.771701] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [ 45.771702] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed > [ 45.771703] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [ 45.771704] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed > [ 45.771705] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [ 45.771707] mwifiex_pcie 0000:03:00.0: PREP_CMD: card is removed > [ 45.771708] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [ 53.099343] mwifiex_pcie 0000:03:00.0: info: trying to associate to '[SSID]' bssid [BSSID] > [ 53.241870] mwifiex_pcie 0000:03:00.0: info: associated to bssid [BSSID] successfully > [ 75.377942] mwifiex_pcie 0000:03:00.0: cmd_wait_q terminated: -110 > [ 85.385491] mwifiex_pcie 0000:03:00.0: info: successfully disconnected from [BSSID]: reason code 15 > [ 87.539408] mwifiex_pcie 0000:03:00.0: cmd_wait_q terminated: -110 > [ 87.539412] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [ 99.699917] mwifiex_pcie 0000:03:00.0: cmd_wait_q terminated: -110 > [ 99.699925] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [ 111.859802] mwifiex_pcie 0000:03:00.0: cmd_wait_q terminated: -110 > [ 111.859808] mwifiex_pcie 0000:03:00.0: deleting the crypto keys > [...] > > When comparing mwifiex_shutdown_sw() with mwifiex_pcie_remove(), it > lacks mwifiex_init_shutdown_fw(). > > This commit fixes mwifiex_shutdown_sw() by adding the missing > mwifiex_init_shutdown_fw(). > > Fixes: 4c5dae59d2e9 ("mwifiex: add PCIe function level reset support") > Signed-off-by: Tsuchiya Yuto Otherwise looks good to me, but what is FLR? I can add the description to the commit log if you tell me what it is. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches