Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3685838rwb; Fri, 30 Sep 2022 07:04:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5nmgArlzt8KHsf1FHkNb119uECx2d/DPJjH+l6roLhz52JCuMLW5HUIpjnaQubeQCBuIKR X-Received: by 2002:a05:6402:5112:b0:451:cb1d:c46f with SMTP id m18-20020a056402511200b00451cb1dc46fmr7759543edd.35.1664546673544; Fri, 30 Sep 2022 07:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664546673; cv=none; d=google.com; s=arc-20160816; b=S8+mJhZ3S4q5Fd9OPrr01isLQNWgTo9UtV2JttwP1Z27IA+zvYx9dAPvXK899UM+SC PdQDasm92lzqKAgTQETKSzD7gwzRhCM8QU+ovrWLUasVej/rr6Qz+ITZxmatdtR+y/Aa KiI5NfQWllK69LmYW2KAI2qjkobKMezTh6FWyuGtyBqIiS0mQmI1aNRFKzq+Y8R6K2PN OKsA5mC1mA0MCmPYgH1tOO5+It8vKMYoiJHUl6jkLpgkO9Dd8t//3AXKK3rMJzLZRzvr GlxFij0TaMEy42B8fQl6USPCQ1V7G6oE2liu59KnFkPgF89BTv2IjDWXt9cYTOkZVO7O NQxg== 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 :message-id:date:subject:cc:to:from:authenticated-by; bh=U7d6obC9Aj1V+xlsqjTfWg11b935iHlUFvZcl78oW7c=; b=qeSVO9K1RvDhZwoPJrw63+6D/3fW0BpiUmqjBODncC+TV0FNLXnQsCmkKqw+uhdOzd /3ISRwo24d2+1daO7bJXWjajaTXQJa0XWQGY2tSWhS3o6w7JB1OYrr08tTAUM4zPpfEM G+gWaVid4VuAkjdVuXZtzxOd+o92m9fHuLWaVhqonRbxNFO1XOkk/kaCg4v0NAX2CMZs tsxQYCKl0NHl0xDPk7XP1OPIUqrQ3koMzK054BAq19Kq1wTyjwL/gERSdEGXswrUwrDj odqXuxGlowZy/XOhQZIo3VHUz17VhcXwyy+m93ojLRvMfR1CU42XFCJd788CN5VE2817 B7AQ== 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 lo24-20020a170906fa1800b0078012fb3c91si1501521ejb.192.2022.09.30.07.04.16; Fri, 30 Sep 2022 07:04:33 -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 S231436AbiI3NeZ (ORCPT + 59 others); Fri, 30 Sep 2022 09:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbiI3NeX (ORCPT ); Fri, 30 Sep 2022 09:34:23 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21FEF15FC7A for ; Fri, 30 Sep 2022 06:34:20 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 28UDXf992027239, 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 28UDXf992027239 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 30 Sep 2022 21:33:41 +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:34:07 +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:34:06 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 1/2] wifi: rtw89: 8852c: correct set of IQK backup registers Date: Fri, 30 Sep 2022 21:33:17 +0800 Message-ID: <20220930133318.6335-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 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 IQK can change the values of this register set, so need to backup and restore the values. During we rewrite IQK, the policy is changed. Some values are controlled and filled by IQK, and don't need to restore after IQK. Therefore, remove this kind of registers from this array. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c b/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c index 006c2cf931116..1e67a565a9e0c 100644 --- a/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c +++ b/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c @@ -22,8 +22,7 @@ static const u32 _tssi_de_mcs_5m[RF_PATH_NUM_8852C] = {0x5828, 0x7828}; static const u32 _tssi_de_mcs_10m[RF_PATH_NUM_8852C] = {0x5830, 0x7830}; static const u32 rtw8852c_backup_bb_regs[] = { - 0x813c, 0x8124, 0x8120, 0xc0d4, 0xc0d8, 0xc0e8, 0x823c, 0x8224, 0x8220, - 0xc1d4, 0xc1d8, 0xc1e8 + 0x8120, 0xc0d4, 0xc0d8, 0xc0e8, 0x8220, 0xc1d4, 0xc1d8, 0xc1e8 }; static const u32 rtw8852c_backup_rf_regs[] = { -- 2.25.1