Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp444586ybh; Wed, 18 Mar 2020 02:54:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs/Ja0lZwwDRcwUbsAgvbs75f4ZvQDniw+At80ozaoLvPE59oMrII8Jizv+ZJX2yhIlocuO X-Received: by 2002:a05:6830:616:: with SMTP id w22mr2964439oti.215.1584525275992; Wed, 18 Mar 2020 02:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584525275; cv=none; d=google.com; s=arc-20160816; b=fvykNJ9JMxX5OUU4YBAH0irJ3t1WlQ3xjjQdMfsX0q7k/N8Y0r7zYf57OiawkrpCbQ 0nSXY93+e0RF0OX5iKHcctl+OCkzKKKvuWNGG6kkkGjmH5z/U5vzORvRxub7HEvZaRnk YvYJxPZoJrbpT+kG8ZcS2EEllbKoMHxxIVrqFsVBkAVgFcWWu+O+qFbVN8AIZ0RVo8mk uPvWVbCFfFgXCsr7c8G544YHIPDSjqc8LjRPF03rDhAHW8g48KCFFChdCgPnlODpKRLh zaqiewTE2CalY4VFeaL0h67hBVB222Nfy7hgT9hoT9MclQXDvI8TxLngFtirNWLs40sl zeeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:authenticated-by; bh=7P6FGJabK3HgNyaqMgQ0MiFPNTORSTXzA67vk2FICuw=; b=ZR9uOepYC4NN6ctYE0tTjPSKmUedVBI4TN8Kez/DZFT0yrK7imM3smRXJu6EbBbfJI cX+PxVU827U5V7izJaLE/ymxllFam/s2LxCKXC1NqDu/Gesocgf5d4gPq8Ez1IPx7g5A huFWvaSzJHJ0gQpd33x/4lNgKwkzZyW/8toqXIG0TQtu3kjsgZa4nvDrrV1RTQ2GWdzk YhEwB54DHZgBv7St0mm356jUDG43zRHUj3RdUjubTIiMUiml4QVJ/a70HmDf4iuxK5cP akoM2PGzhlD4Rd7nIT5+yzf1V4xVHmu+k2GZSSthWHD2UbqYx3tBywS/Fuff31zHrCiC e1xQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si3016704oii.60.2020.03.18.02.54.14; Wed, 18 Mar 2020 02:54:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727355AbgCRJwe (ORCPT + 99 others); Wed, 18 Mar 2020 05:52:34 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:48681 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbgCRJwd (ORCPT ); Wed, 18 Mar 2020 05:52:33 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID 02I9qQtk011197, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTEXMB06.realtek.com.tw[172.21.6.99]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id 02I9qQtk011197 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Mar 2020 17:52:26 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXMB06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Wed, 18 Mar 2020 17:52:26 +0800 Received: from localhost.localdomain (172.21.68.128) by RTEXMB04.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.1779.2; Wed, 18 Mar 2020 17:52:26 +0800 From: To: CC: , Subject: [PATCH] rtw88: 8822c: config RF table path B before path A Date: Wed, 18 Mar 2020 17:52:24 +0800 Message-ID: <20200318095224.12940-1-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.128] X-ClientProxiedBy: RTEXMB02.realtek.com.tw (172.21.6.95) To RTEXMB04.realtek.com.tw (172.21.6.97) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang After MAC switched power, the hardware's RF registers will have its default value, but the default value for path B is incorrect. So, load RF path B first, to decrease the period between MAC on and RF path B config. By test, if we load path A first, then there's ~300ms that the path B is incorrect, it could lead to BT coex's A2DP glitch. But if we configure path B first, there will only have ~3ms, significantly lower possibility to have A2DP sound glitch. Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/rtw8822c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822c.c b/drivers/net/wireless/realtek/rtw88/rtw8822c.c index 146f693c7592..d2469f91976b 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c @@ -4128,7 +4128,7 @@ struct rtw_chip_info rtw8822c_hw_spec = { .agc_tbl = &rtw8822c_agc_tbl, .bb_tbl = &rtw8822c_bb_tbl, .rfk_init_tbl = &rtw8822c_array_mp_cal_init_tbl, - .rf_tbl = {&rtw8822c_rf_a_tbl, &rtw8822c_rf_b_tbl}, + .rf_tbl = {&rtw8822c_rf_b_tbl, &rtw8822c_rf_a_tbl}, .rfe_defs = rtw8822c_rfe_defs, .rfe_defs_size = ARRAY_SIZE(rtw8822c_rfe_defs), .en_dis_dpd = true, -- 2.17.1