Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3039128ybe; Sun, 8 Sep 2019 05:59:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqysM21QN1h3uLCc7xGL8riEH5/Nr9YhhqoDatD898I6vcHAYdIW8C94Dary0cE5EUxjhzI5 X-Received: by 2002:a05:6402:149a:: with SMTP id e26mr19323514edv.298.1567947556042; Sun, 08 Sep 2019 05:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567947556; cv=none; d=google.com; s=arc-20160816; b=YfHAL0V1oTa54rjbNvXwoVh6kU+j7cfpZ4UlzOVeNoZqjkIU5kLorILGw1fLEbU0La o1Z/lP4A5eqHPBB6LEJOPe2zpPMc5htvKtqnq3G4LaQCBhv9bwn0siGPw5ZsFtCOVXwu xepe8d5Xh764wYIScSFyFYVBv7JkGXFwtrg5lhClrJbi7fuZlJdhop0orZBnttxet2bb QVBP7xQZjD/m9DaPseP1nrVPBYn74ltEPFOmzDmX+7h5HCMFL6DXEHEmNGGFzADZgw0m xlLVNfwX/VBgcfGOUlxzwcR9doA96bP1oWw3+ltoG6GxbtD/2kNgcQHVgaL0f9tMGP/p 6acw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=heil67Owl1zfaZ6N8qMEN7pPPMl/wlijFbF6KF5+URQ=; b=wCyLhZfqPlozyRcYkgWDa7Jr0038CWQhbq7DDBJctUg2NNhAFefPwmX2PZq9Tlqv/T a5oiFy13CTcbNVQde43AUCAYJn0cSlyAcHp5lWT3JkLFjvtnFxXmRaWheaTv/w0VJc8w HSZF8bl1fG7iOE9/fV64Fwzd4Weu8qd2DVyJxxn62yE4z7YmWuoLMEsZUEVHFGmWyohc r6RqbqJXEOPUNhEN5i+m3dcrRLWcNkugPpdN58jnzy2EtNE56iOvLUiHaNf/40SVSdrs 5muqo28i1Ey1RwlkklFA8TYbRrjoCs18T26+8QgjmD+mfxtndAshrbNn2ZHCL3brTqQF gkow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si5792015ejr.377.2019.09.08.05.58.51; Sun, 08 Sep 2019 05:59:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727492AbfIHIjW (ORCPT + 99 others); Sun, 8 Sep 2019 04:39:22 -0400 Received: from alexa-out-ams-02.qualcomm.com ([185.23.61.163]:7970 "EHLO alexa-out-ams-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727423AbfIHIjT (ORCPT ); Sun, 8 Sep 2019 04:39:19 -0400 Received: from ironmsg03-ams.qualcomm.com ([10.251.56.4]) by alexa-out-ams-02.qualcomm.com with ESMTP; 08 Sep 2019 10:33:06 +0200 Received: from lx-merez1.mea.qualcomm.com ([10.18.173.103]) by ironmsg03-ams.qualcomm.com with ESMTP; 08 Sep 2019 10:33:05 +0200 From: Maya Erez To: Kalle Valo Cc: Lior David , linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, Maya Erez Subject: [PATCH 11/11] wil6210: ignore reset errors for FW during probe Date: Sun, 8 Sep 2019 11:32:55 +0300 Message-Id: <1567931575-27984-12-git-send-email-merez@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1567931575-27984-1-git-send-email-merez@codeaurora.org> References: <1567931575-27984-1-git-send-email-merez@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Lior David There are special kinds of FW such as WMI only which are used for testing, diagnostics and other specific scenario. Such FW is loaded during driver probe and the driver disallows enabling any network interface, to avoid operational issues. In many cases it is used to debug early versions of FW with new features, which sometimes fail on startup. Currently when such FW fails to load (for example, because of init failure), the driver probe would fail and shutdown the device making it difficult to debug the early failure. To fix this, ignore load failures in WMI only FW and allow driver probe to succeed, making it possible to continue and debug the FW load failure. Signed-off-by: Lior David Signed-off-by: Maya Erez --- drivers/net/wireless/ath/wil6210/pcie_bus.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/pcie_bus.c b/drivers/net/wireless/ath/wil6210/pcie_bus.c index cd417fa..904dcfa 100644 --- a/drivers/net/wireless/ath/wil6210/pcie_bus.c +++ b/drivers/net/wireless/ath/wil6210/pcie_bus.c @@ -537,7 +537,7 @@ static int wil_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) mutex_unlock(&wil->mutex); if (rc) { wil_err(wil, "failed to load WMI only FW\n"); - goto if_remove; + /* ignore the error to allow debugging */ } } @@ -557,8 +557,6 @@ static int wil_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) return 0; -if_remove: - wil_if_remove(wil); bus_disable: wil_if_pcie_disable(wil); err_iounmap: -- 1.9.1