From patchwork Thu Sep 7 10:17:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingbo Kong X-Patchwork-Id: 721728 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08C5CEC873E for ; Thu, 7 Sep 2023 15:54:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231734AbjIGPyl (ORCPT ); Thu, 7 Sep 2023 11:54:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343710AbjIGPvc (ORCPT ); Thu, 7 Sep 2023 11:51:32 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA537AA8 for ; Thu, 7 Sep 2023 08:43:07 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3876JD0Z014394; Thu, 7 Sep 2023 10:17:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=AdlDmOEBuRa4Hwuvsc3dr1uXNZoh5NpbgU+E6HaYgm8=; b=ObSev8+mP5t9LZle81ynmNdRkmmAYplhPfUPEtkyGX7VIyXtVXprA/gpi2UsKkPM+UMi KYulYSIAlYDURYLlwZYmvCgsNzd7u88jf4ciRn6FpP064dZuX0Jp5k8X7SWMRdYni8Eu USkrfoOEpxct8S01M1PHc71JGWnH9HtOPMBuYQUg+FnwOf7f4tzNkeP5zBsc5DyvLXf8 zuFwgnZPEXg1Sbxq8tJxX9sQPnnCbWwEH/XYffbBR4Kn1Z43xRdm5myGywC/WmmfkZmN 9FPZbOHfmWnMlecQ97qDKzc4FlJWSSFOboK/LT17Rjp+3FkRG6aioI+pRgEzzs6ZlxWQ Jw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3sy951gfqw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Sep 2023 10:17:48 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 387AHmA0021495 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Sep 2023 10:17:48 GMT Received: from lingbok-HP-EliteBook-8460p.qca.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.1118.36; Thu, 7 Sep 2023 03:17:46 -0700 From: Lingbo Kong To: , CC: Subject: [PATCH v3 0/4] wifi: ath12k: implement some functionalities through reading ACPI Table Date: Thu, 7 Sep 2023 18:17:06 +0800 Message-ID: <20230907101710.11659-1-quic_lingbok@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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: -dqbUkv1w9DKmPIupvcnTfb95tIS6rF8 X-Proofpoint-ORIG-GUID: -dqbUkv1w9DKmPIupvcnTfb95tIS6rF8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-07_02,2023-09-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 adultscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 mlxlogscore=653 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309070091 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Through reading ACPI table, implement Time-Average-SAR(TAS), BIOS SAR, configuration of CCA threshold and band edge channel power functionalities. v3: 1.remove unnecessary cpu_to_le32() 2.adjust the order of the macros 3.apply jeff's advice v2: 1.put in the include guard Lingbo Kong (4): wifi: ath12k: add TAS capability for WCN7850 wifi: ath12k: add BIOS SAR capability for WCN7850 wifi: ath12k: adjust configuration of CCA threshold value wifi: ath12k: add band edge channel power for WCN7850 drivers/net/wireless/ath/ath12k/Makefile | 3 +- drivers/net/wireless/ath/ath12k/acpi.c | 365 +++++++++++++++++++++++ drivers/net/wireless/ath/ath12k/acpi.h | 60 ++++ drivers/net/wireless/ath/ath12k/core.c | 6 + drivers/net/wireless/ath/ath12k/core.h | 13 + drivers/net/wireless/ath/ath12k/hw.c | 10 + drivers/net/wireless/ath/ath12k/hw.h | 4 +- drivers/net/wireless/ath/ath12k/pci.c | 6 + drivers/net/wireless/ath/ath12k/wmi.c | 252 ++++++++++++++++ drivers/net/wireless/ath/ath12k/wmi.h | 47 ++- 10 files changed, 763 insertions(+), 3 deletions(-) create mode 100644 drivers/net/wireless/ath/ath12k/acpi.c create mode 100644 drivers/net/wireless/ath/ath12k/acpi.h base-commit: 1b5b69a51bb4909844e4003920af09ca1cc6bb0e