From patchwork Fri Nov 7 13:16:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 5252351 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 249A29F387 for ; Fri, 7 Nov 2014 13:14:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28D7620131 for ; Fri, 7 Nov 2014 13:14:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0A4B1200E5 for ; Fri, 7 Nov 2014 13:14:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbaKGNOn (ORCPT ); Fri, 7 Nov 2014 08:14:43 -0500 Received: from wolverine01.qualcomm.com ([199.106.114.254]:11035 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbaKGNOm (ORCPT ); Fri, 7 Nov 2014 08:14:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1415366082; x=1446902082; h=from:to:cc:subject:date:message-id:mime-version; bh=rceiPIbeQuzABV/uBNpiSaiv1VY8TWoHas9p3T1C9V0=; b=JO3ZVj+XxPMjEybJhrgmnRaV7kkIWvwjNRRmVLURebCGtw/faPBKSqPo S4BztD41MaQgKolIPPGOlM/BkptKbqpTm1ct+wRnpLwtjcl+wGk4hPzou s5nVDd584P2+p9/sczTHLBqTa5LSG/CtUUVMUqYsC86ybUntYDRv+WOJL I=; X-IronPort-AV: E=McAfee;i="5600,1067,7614"; a="82453638" Received: from ironmsg03-r.qualcomm.com ([172.30.46.17]) by wolverine01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Nov 2014 05:14:42 -0800 X-IronPort-AV: E=Sophos;i="5.07,332,1413270000"; d="scan'208";a="785584135" Received: from nasanexm01c.na.qualcomm.com ([129.46.53.236]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 07 Nov 2014 05:14:42 -0800 Received: from qcmail1.qualcomm.com (10.80.80.8) by NASANEXM01C.na.qualcomm.com (129.46.53.236) with Microsoft SMTP Server (TLS) id 15.0.913.22; Fri, 7 Nov 2014 05:14:40 -0800 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Fri, 07 Nov 2014 18:46:47 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH 1/2] ath10k: add modpram 'skip_otp' to ignore empty otp error during BMI Date: Fri, 7 Nov 2014 18:46:44 +0530 Message-ID: <1415366205-11672-1-git-send-email-rmanohar@qti.qualcomm.com> X-Mailer: git-send-email 2.1.3 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (129.46.53.236) To NASANEXM01C.na.qualcomm.com (129.46.53.236) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch would help bring up wifi interface with default board data in case of failures in otp download. It is useful for initial caliberation. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath10k/core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 5c23d00..2de49e4 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -31,12 +31,15 @@ unsigned int ath10k_debug_mask; static bool uart_print; static unsigned int ath10k_p2p; +static bool skip_otp; module_param_named(debug_mask, ath10k_debug_mask, uint, 0644); module_param(uart_print, bool, 0644); module_param_named(p2p, ath10k_p2p, uint, 0644); +module_param(skip_otp, bool, 0644); MODULE_PARM_DESC(debug_mask, "Debugging mask"); MODULE_PARM_DESC(uart_print, "Uart target debugging"); MODULE_PARM_DESC(p2p, "Enable ath10k P2P support"); +MODULE_PARM_DESC(skip_otp, "Skip otp failure for calibration in testmode"); static const struct ath10k_hw_params ath10k_hw_params_list[] = { { @@ -280,7 +283,7 @@ static int ath10k_download_and_run_otp(struct ath10k *ar) ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot otp execute result %d\n", result); - if (result != 0) { + if (!skip_otp && result != 0) { ath10k_err(ar, "otp calibration failed: %d", result); return -EINVAL; }