Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp678515rwr; Thu, 20 Apr 2023 05:10:40 -0700 (PDT) X-Google-Smtp-Source: AKy350YGUgY728V7ZCPaD6voXda+8DUhZ2g7HV7ffs35EbxV7sYk61boLqWw5mAdeSZb7PliDjyg X-Received: by 2002:a17:903:40c8:b0:1a2:37fc:b5e2 with SMTP id t8-20020a17090340c800b001a237fcb5e2mr1504609pld.7.1681992639963; Thu, 20 Apr 2023 05:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681992639; cv=none; d=google.com; s=arc-20160816; b=eCLrk0CODYldsjw6xrts7BNGnotqY4v/ngrqVRdxC7meBh6FPjGxo6RJT9mMof5PKn D/QjbW6T8iNPtHBoCf5SjLMuEkB3mumOLqaDIgKRRH4ESZHfqfsdTzdTWLkYK6Y1kzdU vD08JQouX9mEz/jto5+iZvM40B/trfnXn9f0B5CHzW6d3TBPacbeO7uWsRYJ6jLYGPdU DWAw77sJkcuPJtaAmCAHt9QMYy4Sxes0q/S2YW9nsBfggV5Kcz5/bz62OprSCJ3R0WgW mPj9U6Vgrlc+XkKO1YRex0C0sHTnzH1ZqBtm/LmPRRZ4Loi+H2XGRSUU3v8UEvZMyat6 uIuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LyuSS9OX6wQgk5CzqWlhGLyFHL2ACEgsdBYZ0SA+DxM=; b=LKrNclTat1bWnPbVDHgCq34UJx+E49bWNvRtZzhhg5wKq8W0JhtOJI7mpknFnlmVkD RmUjWli+yb62ZSrLT5DKtdDX0RYYqhrRavXj5wvCVlG6Zskt+7Hs9BFgeq6KE9IrFSJX 2DUlgq+4lFoSXfyDxnUcXg0umjGoxBFKA/wkimVl8ShSJkvm/Nkmp0KNdEYS+DwRFwN2 2fTLYyXIzeoMJRmLXPnKwHOV0i7jfp0Zs26a+Gws2IuBx+gL7DQLLL8+/k4K3Gt3EHBN vubKgIJOWhV9NHQodoSJJRBxHbqjc0svSCzRPGkTykbSVzLwmfGzoAjxFgopsn0Wns+Z 7Vsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ms9c3ML+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a170902d48500b001a69aa9e884si1778549plg.631.2023.04.20.05.10.30; Thu, 20 Apr 2023 05:10:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ms9c3ML+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234188AbjDTMJ2 (ORCPT + 63 others); Thu, 20 Apr 2023 08:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234238AbjDTMJ1 (ORCPT ); Thu, 20 Apr 2023 08:09:27 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 808184C05 for ; Thu, 20 Apr 2023 05:09:25 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33KAqLKC013544; Thu, 20 Apr 2023 12:09:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=LyuSS9OX6wQgk5CzqWlhGLyFHL2ACEgsdBYZ0SA+DxM=; b=Ms9c3ML+HKD5hAFhektQjF5bJuwW0IK5FIEqLcbnQhxjxooSasHZ6Sv/jZGnXb+SkeTg uEnKuQyXonD6Dh4br2MEfhL2/kD6E2VvfcyGEFVNbaOhYzHa0GzUpGEJLplk7dKignOI MVljFo3op+oVo4h8KUuuIZ3qsfA52rBXgDmqKJbPGeDFzyj8IuM9r6T3VBYQJxf4pRh3 w6xkM6EWBzPvRoEBltigtDlFO7hXU7lK+2y3yzGO9yMDwjWT5ifiJ6LHLwWX7H6DLPyS F5ZcNuuACj5sXV0JweBwItUfvmaI885kTzwhlZcBaDB4T4qvTYKwxYj7xiwsXOnB17zl 4w== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q2p4v9xbj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Apr 2023 12:09:22 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33KC9LXT025115 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Apr 2023 12:09:21 GMT Received: from rajkbhag-linux.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 20 Apr 2023 05:09:19 -0700 From: Raj Kumar Bhagat To: CC: , Sowmiya Sree Elavalagan , Raj Kumar Bhagat Subject: [PATCH v3 4/4] wifi: ath11k: Allow ath11k to boot without caldata in ftm mode Date: Thu, 20 Apr 2023 17:38:40 +0530 Message-ID: <20230420120840.18712-5-quic_rajkbhag@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230420120840.18712-1-quic_rajkbhag@quicinc.com> References: <20230420120840.18712-1-quic_rajkbhag@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: h8xghDOi9qaRTnD68Lt5XpGrjjfUu1qB X-Proofpoint-ORIG-GUID: h8xghDOi9qaRTnD68Lt5XpGrjjfUu1qB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-20_07,2023-04-20_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 bulkscore=0 impostorscore=0 phishscore=0 priorityscore=1501 adultscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304200098 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sowmiya Sree Elavalagan Currently, if ath11k is unable to load the calibration data file it will always exit. However the calibration data may not be present in factory test mode, so update the logic to allow the driver to execute in FTM mode even if downloading the calibration data fails. Tested-on : IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 Signed-off-by: Sowmiya Sree Elavalagan Signed-off-by: Raj Kumar Bhagat --- drivers/net/wireless/ath/ath11k/qmi.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c index ab923e24b0a9..0108edb8d2ba 100644 --- a/drivers/net/wireless/ath/ath11k/qmi.c +++ b/drivers/net/wireless/ath/ath11k/qmi.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: BSD-3-Clause-Clear /* * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. - * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -2457,6 +2457,14 @@ static int ath11k_qmi_load_bdf_qmi(struct ath11k_base *ab, fw_entry = ath11k_core_firmware_request(ab, ATH11K_DEFAULT_CAL_FILE); if (IS_ERR(fw_entry)) { + /* Caldata may not be present during first time calibration in + * factory hence allow to boot without loading caldata in ftm mode + */ + if (ath11k_ftm_mode) { + ath11k_info(ab, + "Booting without cal data file in FTM mode\n"); + return 0; + } ret = PTR_ERR(fw_entry); ath11k_warn(ab, "qmi failed to load CAL data file:%s\n", -- 2.17.1