Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4642412rwb; Tue, 17 Jan 2023 03:42:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXu5FTBMPlMM1bL3aOf64BIVCeeJ3FyKLH2HAoiAoA/2qjtQS0IdgSmuDPpOLqz8iaKgMF2d X-Received: by 2002:a17:90a:f297:b0:228:cb86:1f76 with SMTP id fs23-20020a17090af29700b00228cb861f76mr2905218pjb.21.1673955757409; Tue, 17 Jan 2023 03:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673955757; cv=none; d=google.com; s=arc-20160816; b=Wq8eD+GSnabOYTszfzSA/SUsvUUeX/+ZR5fMlB72hQlxiqBmaRHgqUATMynhceJzaC hs5oduUfabY0xbxpbBL6Lwa8UQvB7G+ub/vfuC2f9/cDLCr/42Tr3FqtD4Jaot19lCUB 4/shuNd7lOztDRTqSMqESYSR8eBDguXdrGUUQRmwn+Zk7HEp3I4egIrBRDxOwVgBadgU QTkbCLFIOStVd8F0E86043Id5BrXJd66NMkDUnlpDWkhSJmCILnMLFYoYKzjx578zocJ 0cB5x6zANQHY8PgBSOCpGwQ8Q2m97ElCFv2uifz4EOTGcAOZPH9khLOyPj55xnL3Venw BIvA== 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=V4Y6ysP1Svz6qMqdO6sxjo+g+41fbFcwg8XtrQbin38=; b=wPZZ77N7qfZMRcAIQfbE/lVI+sXAdLGo2+SUbQKVItQ7H/skXrzjVuq7tI+RPWh7LG CeRwesj3Z1Fbcyzqa+y7TnnOsFTxtMgzpF5OvpfGOgEq9wVPCBc57nnKef58ll3qZc93 pwbxCP3OLd3foMlnpLKQpNH9fJYOXIvu1hqR1Drho7bYtYXZsPR1ycLGHGhxT98WY9J1 M2JpSLjKMNHXY58Hn5WsaQT2iXRDhrRucLSQAAdlZi1Lp+Xnv1ZBTF9Yy6ifCdGOU5y2 WsUWWLQauXIE02jGQpTCbLkzdtstpec7v7zcdx9RM547i10grikKkUeLOrouQHcR2cqR j5VA== 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 ob15-20020a17090b390f00b002290cb1ca2csi17153024pjb.177.2023.01.17.03.42.30; Tue, 17 Jan 2023 03:42:37 -0800 (PST) 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 S236653AbjAQLmE (ORCPT + 63 others); Tue, 17 Jan 2023 06:42:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236404AbjAQLl5 (ORCPT ); Tue, 17 Jan 2023 06:41:57 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 43412233CF for ; Tue, 17 Jan 2023 03:41:56 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 30HBfmYdB012234, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 30HBfmYdB012234 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 17 Jan 2023 19:41:48 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Tue, 17 Jan 2023 19:41:49 +0800 Received: from localhost (172.16.17.65) 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; Tue, 17 Jan 2023 19:41:48 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 6/8] wifi: rtw89: coex: Correct A2DP exist variable source Date: Tue, 17 Jan 2023 19:41:07 +0800 Message-ID: <20230117114109.4298-7-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230117114109.4298-1-pkshih@realtek.com> References: <20230117114109.4298-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.17.65] 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: 01/17/2023 11:09: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?Q2xlYW4sIGJhc2VzOiAyMDIzLzEvMTcgpFekyCAwOToxNDowMA==?= 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 From: Ching-Te Ku When Wi-Fi enter and leave LPS, coexistence driver need to know is there A2DP exist or not. And when Wi-Fi sleep in deep power save state will not able to receive mailbox sent from Bluetooth. So update the A2DP exist information from reading register. Signed-off-by: Ching-Te Ku Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/coex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/coex.c b/drivers/net/wireless/realtek/rtw89/coex.c index bfeef1069318c..c0e8a0b2e0b75 100644 --- a/drivers/net/wireless/realtek/rtw89/coex.c +++ b/drivers/net/wireless/realtek/rtw89/coex.c @@ -4602,7 +4602,7 @@ static void _update_bt_scbd(struct rtw89_dev *rtwdev, bool only_update) bt->whql_test = !!(val & BTC_BSCB_WHQL); bt->btg_type = val & BTC_BSCB_BT_S1 ? BTC_BT_BTG : BTC_BT_ALONE; - bt->link_info.a2dp_desc.active = !!(val & BTC_BSCB_A2DP_ACT); + bt->link_info.a2dp_desc.exist = !!(val & BTC_BSCB_A2DP_ACT); /* if rfk run 1->0 */ if (bt->rfk_info.map.run && !(val & BTC_BSCB_RFK_RUN)) -- 2.25.1