From patchwork Thu Aug 3 19:08:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Erez X-Patchwork-Id: 9879737 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 2C5C1603F4 for ; Thu, 3 Aug 2017 19:09:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DB9F28960 for ; Thu, 3 Aug 2017 19:09:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1280228967; Thu, 3 Aug 2017 19:09:18 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 ADEB828964 for ; Thu, 3 Aug 2017 19:09:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751921AbdHCTIg (ORCPT ); Thu, 3 Aug 2017 15:08:36 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:49050 "EHLO alexa-out-lv-02.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751872AbdHCTIf (ORCPT ); Thu, 3 Aug 2017 15:08:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1501787316; x=1533323316; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=jWJJObCemYtuqEd+AYnXC1HNSKXX5NEr5Fvv2z+T91o=; b=ESco5h9SuEzXwct227QERLfoGhwI1uWNGuNHtw/OazRzoYJ5EMGS+6sj +myravPZOEOr68VFMfWwDKtRei1OEoROOfH+qhAzOGnJ2vlJ12Vi8MsQo CS9S4Uk0xvZ1fVxKZJ8bXeifwIk3Txv2sw3p6gOiZZUdCDQu5mBaUAN0l s=; X-IronPort-AV: E=Sophos;i="5.41,317,1498546800"; d="scan'208";a="2484436" Received: from ironmsg03-r-new.qualcomm.com (HELO Ironmsg03-R.qualcomm.com) ([10.53.140.107]) by alexa-out-lv-02.qualcomm.com with ESMTP; 03 Aug 2017 12:08:36 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8610"; a="1417424221" X-MGA-submission: =?us-ascii?q?MDH0VdQxjyolfTn+DH7qkNY/KivFP9bttMyGek?= =?us-ascii?q?yb9jRMgSHO/18Q2P2nryn235RxaJL3Jfi57fCPg0C5FSefr0Nna82mJH?= =?us-ascii?q?e4KjhBQ3JLm16Y/u2sozTlVk5kC2+9GyQogANtI+RqyLU9oTDhIi5a9k?= =?us-ascii?q?o9?= Received: from lx-merez1.mea.qualcomm.com ([10.18.173.103]) by Ironmsg03-R.qualcomm.com with ESMTP; 03 Aug 2017 12:08:34 -0700 From: Maya Erez To: Kalle Valo Cc: Maya Erez , linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com Subject: [PATCH v4 04/10] wil6210: check no_fw_recovery in resume failure recovery Date: Thu, 3 Aug 2017 22:08:16 +0300 Message-Id: <1501787302-22885-5-git-send-email-qca_merez@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501787302-22885-1-git-send-email-qca_merez@qca.qualcomm.com> References: <1501787302-22885-1-git-send-email-qca_merez@qca.qualcomm.com> 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 Reset 11ad device on resume failure only if no_fw_recovery is not set. Signed-off-by: Maya Erez --- drivers/net/wireless/ath/wil6210/pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210/pm.c b/drivers/net/wireless/ath/wil6210/pm.c index ce1f384..4548829 100644 --- a/drivers/net/wireless/ath/wil6210/pm.c +++ b/drivers/net/wireless/ath/wil6210/pm.c @@ -85,7 +85,9 @@ static int wil_resume_keep_radio_on(struct wil6210_priv *wil) /* Send WMI resume request to the device */ rc = wmi_resume(wil); if (rc) { - wil_err(wil, "device failed to resume (%d), resetting\n", rc); + wil_err(wil, "device failed to resume (%d)\n", rc); + if (no_fw_recovery) + goto out; rc = wil_down(wil); if (rc) { wil_err(wil, "wil_down failed (%d)\n", rc);