From patchwork Thu May 25 00:11:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9747247 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 47B5D60388 for ; Thu, 25 May 2017 00:13:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3976D26E54 for ; Thu, 25 May 2017 00:13:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CE7426E98; Thu, 25 May 2017 00:13:59 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 A020027031 for ; Thu, 25 May 2017 00:13:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162235AbdEYANs (ORCPT ); Wed, 24 May 2017 20:13:48 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:34384 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164718AbdEYALm (ORCPT ); Wed, 24 May 2017 20:11:42 -0400 Received: by mail-pf0-f175.google.com with SMTP id 9so150116762pfj.1 for ; Wed, 24 May 2017 17:11:37 -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=rHzHPjjBsup3YNnOgeBdh+XXfAFyxxsB3qQSuXxuzQ8=; b=Myr7nJcBIIQIVjOyFmLFqzGArh4E/CI+6HA7EpF9ienFN+olTAhcTxqfLABnOr/97v wh+58Dd1uKyLHzmzy+8qkB4jhabr37Putg2kbrq0vaZ+hRmKRrMI3eSVMRBgKaBy+gzO jD6XrR+rqenyjKbg27kiOb9AOpAWcszpyLmLY= 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=rHzHPjjBsup3YNnOgeBdh+XXfAFyxxsB3qQSuXxuzQ8=; b=omHI3ashUpIGRnKcsVImyGy0oQ6Clin76banX6EELahLOs2gfGfkclPXgLEJxt5m1y 3HAMU5QlkZkVoKSTx5R72IHg2KRIpy6t1h0B063iqIlEuOWDmNsyHNP+2djLt5CoMyND omb2N6ST2k812aZOvvvm/0zvPCvr50G6PcxnJNmHCKCdeHleqS+ycqM9K5TdEHNu+mTO dZI1SLHPMfuxcOsG0F+r59epAtklBtDndH0wLt5ILIKCUxiW8tLs9UuhZICoghojvmLg Z5p4/x/v83ovqeEnidOHExKaKrdycWL0SepBdndWhXTJJbquCqjYmA8MJY6B3zqIdYym rnuw== X-Gm-Message-State: AODbwcAKJxLzXDskzxXevurzRe1O0HfSXlQOnoxhTBGoqNjhIrcLRVOm AjwTTF2sUDOA1IEf X-Received: by 10.99.137.198 with SMTP id v189mr41846333pgd.205.1495671096806; Wed, 24 May 2017 17:11:36 -0700 (PDT) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id s23sm9823692pfg.81.2017.05.24.17.11.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 17:11:36 -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 03/14] mwifiex: reset interrupt status across device reset Date: Wed, 24 May 2017 17:11:08 -0700 Message-Id: <20170525001119.64791-3-briannorris@chromium.org> X-Mailer: git-send-email 2.13.0.219.gdb65acc882-goog In-Reply-To: <20170525001119.64791-1-briannorris@chromium.org> References: <20170525001119.64791-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 --- 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 a1e98e36c1ce..3b7316b537ea 100644 --- a/drivers/net/wireless/marvell/mwifiex/main.c +++ b/drivers/net/wireless/marvell/mwifiex/main.c @@ -1362,6 +1362,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++) {