From patchwork Wed Aug 2 21:00:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Erez X-Patchwork-Id: 9877757 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 040E760360 for ; Wed, 2 Aug 2017 21:01:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB3BA2882F for ; Wed, 2 Aug 2017 21:01:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E01E928831; Wed, 2 Aug 2017 21:01:07 +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 951DD2882F for ; Wed, 2 Aug 2017 21:01:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752812AbdHBVBF (ORCPT ); Wed, 2 Aug 2017 17:01:05 -0400 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:35554 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752616AbdHBVBE (ORCPT ); Wed, 2 Aug 2017 17:01:04 -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=1501707664; x=1533243664; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=jWJJObCemYtuqEd+AYnXC1HNSKXX5NEr5Fvv2z+T91o=; b=BLE0c1vcFtKTW0K0Xjs6e4mWO/flY5GkWFSW80MTiuzYhwdP4DXqeAg9 T4QqmtD2Om69ithC9iOmr88JqKBJZ8y2ur2JLhHTQVOArKhlbhJPBKVck DFe94Es0/pk0n8tide6B5xdOkhbUBOow1pj1X4u81mgZ7ITjG/AcYsDw4 w=; X-IronPort-AV: E=Sophos;i="5.41,313,1498546800"; d="scan'208";a="111952944" Received: from unknown (HELO ironmsg02-R.qualcomm.com) ([10.53.140.106]) by sabertooth01.qualcomm.com with ESMTP; 02 Aug 2017 14:01:04 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8610"; a="1009681538" X-MGA-submission: =?us-ascii?q?MDGoWRw9nB/6uKk02lcrNjfbf7HZm4EOzvrmq8?= =?us-ascii?q?VcescniCOVdR8zHQugdXtowRpG1udpZUALrTSwF59aL9a1SjDMoFRfwu?= =?us-ascii?q?dtgC0IkDF5gPLUpks81cNPVTrem58AjZj9otmemQNmsvpWaAOylBSaOp?= =?us-ascii?q?cl?= Received: from lx-merez1.mea.qualcomm.com ([10.18.173.103]) by ironmsg02-R.qualcomm.com with ESMTP; 02 Aug 2017 14:01:02 -0700 From: Maya Erez To: Kalle Valo Cc: Maya Erez , linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com Subject: [PATCH v2 4/9] wil6210: check no_fw_recovery in resume failure recovery Date: Thu, 3 Aug 2017 00:00:44 +0300 Message-Id: <1501707649-9665-5-git-send-email-qca_merez@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501707649-9665-1-git-send-email-qca_merez@qca.qualcomm.com> References: <1501707649-9665-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);