Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1577758pxb; Tue, 8 Feb 2022 22:55:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5w224cycxjPMAJQQtwJZqZ+aZ3d5whlEmfjABqdXdS1yzwOKtR23y0qxW42Rz5RHUGooo X-Received: by 2002:a65:45cf:: with SMTP id m15mr818957pgr.84.1644389745703; Tue, 08 Feb 2022 22:55:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644389745; cv=none; d=google.com; s=arc-20160816; b=E6ooJFTi/waoJ1PI3g3lfeQrRBUHYcz7lyEY8nRlJMvWTod5VWaEObjfW4gv0c7xik toodvfG7x01AhDxoXME4h7Dco5JxAgmF+l/sbFp2ANbbPOJCMWNFFCx+6NuY0CM0jffX Ky2n+bk9TB/REtT/yVI9WonTyje0h0N5FpVAqIOurwkuxVLxRSga+vjqNnxTzgrAM3dg w7b95CbTTkBQB0uTxes/ZBfHCuuwMH6EzyPZivwlELn9g8YOQUGLp/ZJSQsEBgXpya+H aJOcJB2uvkqUoNlHlpZT1M0uLotu2UC1OVzlyzR/QGjcWrpMvFpr7lVafhotNnAyDW3T ysag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wRqVYEvtASr/2CPMz1yrWa7eoT32u3NSuYCsqJXfjXU=; b=ylvXmsDC8g7lNf2HOgsGfr+qglnmbbeBmVe6lrATbsZ6fpaIY+6G0I3Q/x54aYtC+S fFkJrBVWnRRoEJJnQ5UKS3Abvgefd9SGEEeMAgKABMZLGNqIAiJLzoOCRDycCMiFYjod 1XsI7RcG04uBd7RNdHSf7dCGVGi/V5KQFVTuDJ5K6a2zUN9UulOAq+0XmIQo8/vjkMKr +pYOYb09VtKb6Fb7UHfw8MMHc0CpGp5PITeC1FL/X+bgfNuOkuQQUSzAQKv+jSyiIKkk ImiXngoN+WOBUbCgLCfBpqpa5ccfX3UrWU8dbK8uKeug6VX8V/Gkwf3cdRttLdEFaZKK M1AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="rZMof/JH"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j190si3184128pgd.589.2022.02.08.22.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:55:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="rZMof/JH"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8251E032DF9; Tue, 8 Feb 2022 22:36:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359505AbiBHLbj (ORCPT + 72 others); Tue, 8 Feb 2022 06:31:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356592AbiBHKwI (ORCPT ); Tue, 8 Feb 2022 05:52:08 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3201BC03FEC0 for ; Tue, 8 Feb 2022 02:52:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644317527; x=1675853527; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wRqVYEvtASr/2CPMz1yrWa7eoT32u3NSuYCsqJXfjXU=; b=rZMof/JHCIlY+w5AiAHJetsZ/U1Z45IMRfNBwliJiKgKBcJkQ9SzkdHe diD867WUYM2VEQSwxWYqaCFzsx1MwzjifpbTfuG8l5uodsFRf+zMFcVAC U6G4dI1vBz2UvAxbwBs7eJ0Clrfe6PYlmXreLVlBFtNDJOi5JojDp4CJI Q=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 08 Feb 2022 02:50:04 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 02:50:04 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Tue, 8 Feb 2022 02:50:04 -0800 Received: from wgong-HP3-Z230-SFF-Workstation.qca.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Tue, 8 Feb 2022 02:50:02 -0800 From: Wen Gong To: CC: , Subject: [PATCH v5 1/5] ath11k: add ath11k_qmi_free_resource() for recovery Date: Tue, 8 Feb 2022 05:49:43 -0500 Message-ID: <20220208104947.25791-2-quic_wgong@quicinc.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220208104947.25791-1-quic_wgong@quicinc.com> References: <20220208104947.25791-1-quic_wgong@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 ath11k_qmi_free_target_mem_chunk() and ath11k_qmi_m3_free() is static in qmi.c, they are needed for recovery, export them in a new function. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2 Signed-off-by: Wen Gong --- drivers/net/wireless/ath/ath11k/qmi.c | 5 +++++ drivers/net/wireless/ath/ath11k/qmi.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c index d0701e8eca9c..1144e828cf5c 100644 --- a/drivers/net/wireless/ath/ath11k/qmi.c +++ b/drivers/net/wireless/ath/ath11k/qmi.c @@ -3025,3 +3025,8 @@ void ath11k_qmi_deinit_service(struct ath11k_base *ab) } EXPORT_SYMBOL(ath11k_qmi_deinit_service); +void ath11k_qmi_free_resource(struct ath11k_base *ab) +{ + ath11k_qmi_free_target_mem_chunk(ab); + ath11k_qmi_m3_free(ab); +} diff --git a/drivers/net/wireless/ath/ath11k/qmi.h b/drivers/net/wireless/ath/ath11k/qmi.h index ba2eff4d59cb..61678de56ac7 100644 --- a/drivers/net/wireless/ath/ath11k/qmi.h +++ b/drivers/net/wireless/ath/ath11k/qmi.h @@ -492,5 +492,6 @@ void ath11k_qmi_event_work(struct work_struct *work); void ath11k_qmi_msg_recv_work(struct work_struct *work); void ath11k_qmi_deinit_service(struct ath11k_base *ab); int ath11k_qmi_init_service(struct ath11k_base *ab); +void ath11k_qmi_free_resource(struct ath11k_base *ab); #endif -- 2.31.1