Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1203749iob; Thu, 19 May 2022 01:19:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSnPRxPqeCVuBzbKtjJcTEGa28vP2cQhPzs5wSM8P0HJJjrvcvhtTEsoS0T2WpOYTXJ5tc X-Received: by 2002:a62:1490:0:b0:4cc:3c7d:4dec with SMTP id 138-20020a621490000000b004cc3c7d4decmr3787348pfu.32.1652948345305; Thu, 19 May 2022 01:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652948345; cv=none; d=google.com; s=arc-20160816; b=sfTeqrY2ck5ENKEXDMHGwZgOG/jUAuvKI1LQ6yMAJMNJ6ciZ8WiaP29dN4v6HBj1d4 sHSbUwVg4H7wvBlWIdzUMBNLWrCpMhS0oR9h+/ChoVyNegYn+DWOy2rfM80VwsacZTiy S7rFlPWjHMOUiFyQ7droFA1V/lLCE53aRQAmKiT/yA432eptF/vrv8zcLc9tRWlZOA5B 9mXCePXskiHN62Ez+n2lZSlHNbR4UyqZRxQEFpsqADBZJV/a0C4oIuA+x9dNG+WFayft Y6hAVwsVwpy+obovqJ7xOxljO73urnlzLwNI0T0THx93P19pstwsvnA3/gYYuuXyyZp0 E9Tg== 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=aT602BNYk/z+0R27bZtkbRZ9JQqbBDIhZq+QSvcr1NE=; b=rnOeDimqEOBsTgrvLC6iEvRo7TB7+vqwqLwvy7v3K6bmCJZFI6yIZrw8xsDWwShTKx akbbK3Co3m8GRCV8McMY+8f9KwPtmerQymNTAhSoId5m4RsTV1hpQX63iToSIh9Wvejs UOXUdnqBdyWpqgZuzkcv/dN5ZTPJXVig1xvdYV9263Ii9y79LBOKZlR02jN8I/e4Uosf /CE/5GelOMpSfhAxf6yFxUJr1upU5WuWAUxpowSUzoqjkQ1x+zPaaE5FhdJQ5k5ZVChT sgBkabdNhqmeVzH9fAIdBBH6cJPyxa1Mi5E7muWg2Z7lTF9xAaTsQrSRULeNNrBt3x02 MIoQ== 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 q20-20020a63d614000000b003f250fc5e17si5794166pgg.793.2022.05.19.01.18.52; Thu, 19 May 2022 01:19:05 -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 S229656AbiESGjD (ORCPT + 69 others); Thu, 19 May 2022 02:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbiESGjC (ORCPT ); Thu, 19 May 2022 02:39:02 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D16DB41FD for ; Wed, 18 May 2022 23:39:00 -0700 (PDT) X-UUID: a5b3662451d34596bae6b8bb67f1d21b-20220519 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.5,REQID:4df1b030-7bb2-46ae-bd7f-8097d13e1cac,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:100,FILE:0,RULE:Release_Ham,A CTION:release,TS:95 X-CID-INFO: VERSION:1.1.5,REQID:4df1b030-7bb2-46ae-bd7f-8097d13e1cac,OB:0,LOB: 0,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:100,FILE:0,RULE:Spam_GS981B3D,A CTION:quarantine,TS:95 X-CID-META: VersionHash:2a19b09,CLOUDID:69bad279-5ef6-470b-96c9-bdb8ced32786,C OID:a1f5ff08d558,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,QS:0,BEC:nil X-UUID: a5b3662451d34596bae6b8bb67f1d21b-20220519 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 446670915; Thu, 19 May 2022 14:38:56 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Thu, 19 May 2022 14:38:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 19 May 2022 14:38:55 +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 0/3] introduce BIOS SAR support Date: Thu, 19 May 2022 14:38:21 +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_NONE, 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 BIOS SAR support for mt7921 serials. Deren Wu (3): mt76: add 6G band support in mt76_sar_freq_ranges mt76: mt7921: introduce BIOS SAR support mt76: mt7921: introduce BIOS SAR config in tx power drivers/net/wireless/mediatek/mt76/mac80211.c | 6 + .../wireless/mediatek/mt76/mt7921/Makefile | 1 + .../wireless/mediatek/mt76/mt7921/bios_sar.c | 281 ++++++++++++++++++ .../wireless/mediatek/mt76/mt7921/bios_sar.h | 93 ++++++ .../net/wireless/mediatek/mt76/mt7921/init.c | 5 +- .../net/wireless/mediatek/mt76/mt7921/main.c | 32 +- .../wireless/mediatek/mt76/mt7921/mt7921.h | 22 ++ 7 files changed, 429 insertions(+), 11 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/bios_sar.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/bios_sar.h -- 2.18.0