Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3658789rwb; Fri, 30 Sep 2022 06:43:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7NLmEj/jTXTmSNiP9hSD5J5BAPRdlkKdSCsfbesSxxWPSZu1N+qV7oltB2i0TKYb6x+1QL X-Received: by 2002:a17:906:4fcf:b0:781:cb5a:dfa5 with SMTP id i15-20020a1709064fcf00b00781cb5adfa5mr6319709ejw.213.1664545399731; Fri, 30 Sep 2022 06:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664545399; cv=none; d=google.com; s=arc-20160816; b=TADSBhS85+DGcfMYcj1izqIXht+DiL7TzEgh8IoBpzikhSRRc1ZkTJ5Evp0m0BY0H9 mt8e9OenRlwn5kt2oAamSlaI9QC8mjDk68/u1bH8a2USZ5IjOanIGaNJQe5LOR6SN5iQ MQaZW7xQDnEY0vi/9s5KZtEDrB8jFhRkdLKcvaPYm/j2ws4J08xtk4hypwUhuWX8nhWB ysPRlcXQYWXRJyZ70bhmMh3IGXpssN5jX/RW0BCJF/nQrKB3N9yeBCsjZ3WCJZtjdkkx l5biJvRnB+l0SPHQqQwh2uoaJJGlzsV4kWn0cenbaXIbkrE2eCRL3HgLG6zBWjthk5ZM qWdw== 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 :authenticated-by; bh=NOsKS6ikAJcXwO8lr7EDfSDesg7vaIt/ksFheNMEkX0=; b=De0zAWhGFA+ojKJOKd7V1EnsaJa/oCee4JaO+P9rxWrXpoktDwauqHsgcDrVvS1jxd NfE58ZaxVeAuTXiae01VWxTgndUfLNO9y/4+HvvZQvrWSB4SllchxkcseNeP0a2sm/xG bHulz8SwP0W7v5zT6wsBlrkoOlJYmkXJOzpmI0GjowszvsyEl8SeOWfAb5oBCMVvqjEj pY/lPppWKH+bF7+AzkjKGvvu4m+B5pnl2SMMfpGdZGTkOajRMCUHGIymSh9pULML0/l/ Hge7G+Gf1Fq3LGk1ZPj6iukU/2bDKO6Y6Dlb8wxcuJ5rk0HkctLUNmztwIhdUNgMJdxo niSQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b26-20020a17090630da00b00741a18d4a5asi1606769ejb.994.2022.09.30.06.42.59; Fri, 30 Sep 2022 06:43:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbiI3NiD (ORCPT + 59 others); Fri, 30 Sep 2022 09:38:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbiI3NiA (ORCPT ); Fri, 30 Sep 2022 09:38:00 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E00FD13DD9D for ; Fri, 30 Sep 2022 06:37:58 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 28UDbQi65003278, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 28UDbQi65003278 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 30 Sep 2022 21:37:26 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 30 Sep 2022 21:37:52 +0800 Received: from localhost (172.16.20.103) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 30 Sep 2022 21:37:51 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 2/2] wifi: rtw89: phy: ignore warning of bb gain cfg_type 4 Date: Fri, 30 Sep 2022 21:36:59 +0800 Message-ID: <20220930133659.7789-2-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220930133659.7789-1-pkshih@realtek.com> References: <20220930133659.7789-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.20.103] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 09/30/2022 13:14:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIyLzkvMzAgpFekyCAxMToxNDowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 The new BB parameters add new cfg_tpe 4 to improve performance of eFEM modules (rfe_type >= 50), but we are using iFEM modules for now, so this warning can be ignored. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/phy.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw89/phy.c b/drivers/net/wireless/realtek/rtw89/phy.c index 6a6bdc652e09e..b1821d2474b3b 100644 --- a/drivers/net/wireless/realtek/rtw89/phy.c +++ b/drivers/net/wireless/realtek/rtw89/phy.c @@ -1036,6 +1036,7 @@ static void rtw89_phy_config_bb_gain(struct rtw89_dev *rtwdev, { const struct rtw89_chip_info *chip = rtwdev->chip; union rtw89_phy_bb_gain_arg arg = { .addr = reg->addr }; + struct rtw89_efuse *efuse = &rtwdev->efuse; if (arg.gain_band >= RTW89_BB_GAIN_BAND_NR) return; @@ -1061,6 +1062,11 @@ static void rtw89_phy_config_bb_gain(struct rtw89_dev *rtwdev, case 3: rtw89_phy_cfg_bb_gain_op1db(rtwdev, arg, reg->data); break; + case 4: + /* This cfg_type is only used by rfe_type >= 50 with eFEM */ + if (efuse->rfe_type < 50) + break; + fallthrough; default: rtw89_warn(rtwdev, "bb gain {0x%x:0x%x} with unknown cfg type: %d\n", -- 2.25.1