From patchwork Tue Jul 25 01:13:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9860945 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C9E37603F9 for ; Tue, 25 Jul 2017 01:15:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B91672858E for ; Tue, 25 Jul 2017 01:15:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC8FC2842E; Tue, 25 Jul 2017 01:15:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CCFC2858E for ; Tue, 25 Jul 2017 01:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756828AbdGYBOh (ORCPT ); Mon, 24 Jul 2017 21:14:37 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:35832 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756664AbdGYBON (ORCPT ); Mon, 24 Jul 2017 21:14:13 -0400 Received: by mail-pf0-f180.google.com with SMTP id h29so18021339pfd.2 for ; Mon, 24 Jul 2017 18:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BwsJW49cBsy94TiSvQjq7F8/+VRfwFs5Z1nISgAGSb8=; b=JQiETRsMslSj0kaOesnRowymZXEINotzYYzvYeEPlBdZhmdlm4946dVFEvj9TWI+nF etYVXVLynqV2wux1/sWGpazd/AgbmLRi5ZDe7ZoGFcT2r10tk0HRnV5dfiLN6UGVpekt I2DUnyYiuYf7s0wM42Kurcp0L+QDUSQHaVBPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BwsJW49cBsy94TiSvQjq7F8/+VRfwFs5Z1nISgAGSb8=; b=oyK0v6NWmuCtsFfQR71oWbisUm6cYrEHpIx7vnHlXzKY/s303ur+LLQXVv6YyWjMzZ 0N+RqU7cp5r+TsIBk8LAIIEB+n2Rd+ddrYLORWs73TVP4q2vErlbmVrEjhIPQK4o3PGO kDhUNvOm1IyCpEtHLYMqHamYDfzz9K7SvTEManXHSQdvEHggYJ5ENfuyPdq5FrUY/LhP dpH+QObcmT0LfFFZZXWXemde9iqDvejVa0jIa3SNhuQEiQIWdVoWO3H7faCL4DEcO83l VfvfBNRDzqAsllxqUsYqHiCD58XDVwHItgyl3Sj5ArEMS1C+uNnLLwNrAO6/1qjwKYzr NiHg== X-Gm-Message-State: AIVw113LKTKOb1WX4+TxD0mY7WAQr9A3JWTWtxqh6N2rDhjd/5rRZFHR SqeOMpLn9weIKuwF X-Received: by 10.84.136.36 with SMTP id 33mr20216364plk.123.1500945253077; Mon, 24 Jul 2017 18:14:13 -0700 (PDT) Received: from ban.mtv.corp.google.com ([172.22.113.17]) by smtp.gmail.com with ESMTPSA id h123sm21497036pgc.36.2017.07.24.18.14.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Jul 2017 18:14:12 -0700 (PDT) From: Brian Norris To: Ganapathi Bhat , Nishant Sarmukadam Cc: , Dmitry Torokhov , Amitkumar Karwar , Kalle Valo , linux-wireless@vger.kernel.org, Brian Norris Subject: [PATCH v2 02/20] mwifiex: reset interrupt status across device reset Date: Mon, 24 Jul 2017 18:13:18 -0700 Message-Id: <20170725011336.99993-3-briannorris@chromium.org> X-Mailer: git-send-email 2.14.0.rc0.284.gd933b75aa4-goog In-Reply-To: <20170725011336.99993-1-briannorris@chromium.org> References: <20170725011336.99993-1-briannorris@chromium.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When resetting the device, we might have queued up interrupts that didn't get a chance to finish processing. We really don't need to handle them at this point; we just want to make sure they don't cause us to try to process old commands from before the device was reset. Signed-off-by: Brian Norris --- v2: no change --- 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 8615099468da..275cf8dc4f2a 100644 --- a/drivers/net/wireless/marvell/mwifiex/main.c +++ b/drivers/net/wireless/marvell/mwifiex/main.c @@ -1366,6 +1366,7 @@ static void mwifiex_uninit_sw(struct mwifiex_adapter *adapter) adapter->surprise_removed = true; mwifiex_terminate_workqueue(adapter); + adapter->int_status = 0; /* Stop data */ for (i = 0; i < adapter->priv_num; i++) {