Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2164456iob; Fri, 20 May 2022 03:34:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaapylpN5k9KzkYP33PaZTNp70IPS2qb/rZ6D2q9tK4PmsOo0pS+7VLwd7YBc8YNUAc5Op X-Received: by 2002:a17:902:d585:b0:161:f5ba:c4e3 with SMTP id k5-20020a170902d58500b00161f5bac4e3mr1802285plh.49.1653042853125; Fri, 20 May 2022 03:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653042853; cv=none; d=google.com; s=arc-20160816; b=xFCg6dXXh9PUXrgOZx8/rQZyGiElX17kzZBH0UEuDLBpWvVaXkZYv+5sgvlbIxNKhk o45D74BavXgrGya/nJUwcFK+B5GlATQ+536Z7IdGpav52YbD06Gbz9drY9RxYrZ3IelH FtoH2rhQnu9/+H64he53jbMkSlv+4ky9BlI4rZqUHGvnonExdy4LSutohNzfQ9HFCoyT 0s4kZIjaelrRjshP0Kz4ef7Buz5K9N+RNxYtuANLjTPDfQ2+YZLRrcoSLiXNG4pjWedX oLV1t/HjbJad6YxA14Gb+h+sSANsPOs7uEAMEoiXDSMUGPVMpew207jrH7nqbLkMnSnd n0gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=yn59st0UVN3LoZtTkSS9r/PjZUMnV/wstbi22JSG0WU=; b=eJv5AUc9ZmZUijMsvPo0TUm8vA5nv/C5jbUhQLXr7wmtwkmPp+H+DdL76GLHvqdz7I zcMIjMrIskDPP3V1dVV4fTQywOiEJBWVj0JfBx8VpW93SkHO7URAO8wc0f3Rdk5AsDRq aMBNQzyhc0e5xgidnAutnskagNwdDs5AdN+Q7FjmyTbY3LxcFr6Ve5JmivjiHM4g3fQ2 tPY0Bx++koDBnUDGzcUWc3wzOJsPxwOtneFTb7NcfMWnXh+4BacydmYD0VXIIldEc8LQ WnCss1oFmbDm3blXAEOeqVljugnmWZTgHVlVodLOSufk25+h6znTktpwrtBjmDzlfu0w H1gg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020aa79427000000b0050e01cd969dsi2561908pfo.244.2022.05.20.03.34.00; Fri, 20 May 2022 03:34:13 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345182AbiETJEF (ORCPT + 69 others); Fri, 20 May 2022 05:04:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237101AbiETJEE (ORCPT ); Fri, 20 May 2022 05:04:04 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D26AEAD2A for ; Fri, 20 May 2022 02:04:03 -0700 (PDT) X-UUID: ea964a35bced48f48ed0769782e46feb-20220520 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.5,REQID:4b16dcb3-f01e-4278-935c-4b2e86aa4e7f,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACT ION:release,TS:-5 X-CID-META: VersionHash:2a19b09,CLOUDID:d114ff79-5ef6-470b-96c9-bdb8ced32786,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:0,BEC:nil X-UUID: ea964a35bced48f48ed0769782e46feb-20220520 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1607449350; Fri, 20 May 2022 17:03:58 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Fri, 20 May 2022 17:03:57 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Fri, 20 May 2022 17:03:57 +0800 From: Deren Wu To: Felix Fietkau , Lorenzo Bianconi CC: Sean Wang , Soul Huang , YN Chen , Leon Yen , Eric-SY Chang , Deren Wu , KM Lin , Robin Chiu , CH Yeh , Posh Sun , Eric Liang , Stella Chang , Evelyn Tsai , Ryder Lee , Shayne Chen , linux-wireless , linux-mediatek , Deren Wu Subject: [PATCH v2 0/3] introduce ACPI SAR support Date: Fri, 20 May 2022 17:03:36 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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: Deren Wu Introduce ACPI SAR support for mt7921 serials. Changes since v1: - replace BIOS with ACPI - replace "6G" with "6 GHz" in patch subject - remove unnecessary function export Deren Wu (3): mt76: add 6 GHz band support in mt76_sar_freq_ranges mt76: mt7921: introduce ACPI SAR support mt76: mt7921: introduce ACPI SAR config in tx power drivers/net/wireless/mediatek/mt76/mac80211.c | 6 + .../wireless/mediatek/mt76/mt7921/Makefile | 1 + .../wireless/mediatek/mt76/mt7921/acpi_sar.c | 279 ++++++++++++++++++ .../wireless/mediatek/mt76/mt7921/acpi_sar.h | 93 ++++++ .../net/wireless/mediatek/mt76/mt7921/init.c | 5 +- .../net/wireless/mediatek/mt76/mt7921/main.c | 31 +- .../wireless/mediatek/mt76/mt7921/mt7921.h | 22 ++ 7 files changed, 426 insertions(+), 11 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/acpi_sar.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/acpi_sar.h -- 2.18.0