Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp483691rwb; Mon, 26 Sep 2022 23:31:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7VSjeg22UYGp+yJgCed0fwEL3ivZt4ix16WpNyqSYLSUtHTt1QtRAIkQVph4FzxKfmiXfu X-Received: by 2002:a17:90a:5996:b0:203:1640:2dbf with SMTP id l22-20020a17090a599600b0020316402dbfmr2919984pji.150.1664260300584; Mon, 26 Sep 2022 23:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664260300; cv=none; d=google.com; s=arc-20160816; b=K1FMcYGH//occBCOp5CaJdTIG1ccYqlk5NCLvwHKuU226X5tQDcSzROh7LigX77BoQ VUs1tgWIi9ZFzl7aGrIxzRx1xenmkO3//oHpgnF31GrqEhRuo6/4gCxxGjqqpkzQwUfM pBDyNUzpMyCLgXVj5JPTnUYUPNfM4o3R7a/tqZuFgHWEoiYEtBqa05dfFPw3O9jPFi1A MlNUdG5ARJ7tlW8bCRzIuOQFrUTD9QFOACaxoMqZvNrbdJdNFrPFJ/r6u3LCUWQW5pId oERmH/MpI7NzZGwp+QU0HWosEO9FYtjrOOzRl8Jtjo1twIMom6yIHCwkn/+4Jo2cxowQ 8fpA== 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=9QjaGv2NeaVw04/H/J/DBk6rxFdCWw+rX7ziwtkCuJs=; b=mOOhX4ei9sGaf03Wub6jsz3bBV2WC/dno23Dp6spnagCMCYgaSpnRwm28L5r+ZEA3e OuCHocAPQm4qjAbwmRSPOB9lSvdNwHg+3pvWtT3XlUo42sdglDn/TU5j7xBQGgChKJ9X /nDlAPuqnCD6/4dGrUwYDFVegZQuz1FtgilRd60shkkjePq6qjVISCrxboFmS5mmMPTx Jk5aC+h4Eo82XcK9N1JkHTk0mer/d3p6qVLrCN67Pgak2EuxWE0of6z8vN5x1tE1t0M8 m2VNIc0NFCnhnXPowQKcQ8v9pF3tMAX5cvnZX38dB9KtZ01F4n3LBzr7yFBjAQnkBdzZ 64cQ== 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 p10-20020a170902ebca00b00176b8830921si806819plg.294.2022.09.26.23.31.33; Mon, 26 Sep 2022 23:31:40 -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 S230112AbiI0G2O (ORCPT + 61 others); Tue, 27 Sep 2022 02:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbiI0G2L (ORCPT ); Tue, 27 Sep 2022 02:28:11 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A0A1985F9B for ; Mon, 26 Sep 2022 23:28:01 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 28R6Qj4dA008404, 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 28R6Qj4dA008404 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 27 Sep 2022 14:26:45 +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; Tue, 27 Sep 2022 14:27:10 +0800 Received: from localhost (172.21.69.188) 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, 27 Sep 2022 14:27:10 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH v2 6/9] wifi: rtw89: pci: set power cut closed for 8852be Date: Tue, 27 Sep 2022 14:26:08 +0800 Message-ID: <20220927062611.30484-7-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220927062611.30484-1-pkshih@realtek.com> References: <20220927062611.30484-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.188] 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/27/2022 06:02: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?Q2xlYW4sIGJhc2VzOiAyMDIyLzkvMjcgpFekyCAwNDo1MzowMA==?= 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_PASS, T_SPF_HELO_TEMPERROR 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 Entering LPS with PCIe APHY power cut closed would cause PCIe link issue. To avoid the combinational issue, keep PCIe APHY power cut always on. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/pci.c b/drivers/net/wireless/realtek/rtw89/pci.c index b52edf2cf7434..5f8e19639362d 100644 --- a/drivers/net/wireless/realtek/rtw89/pci.c +++ b/drivers/net/wireless/realtek/rtw89/pci.c @@ -2099,7 +2099,7 @@ static u32 rtw89_pci_l2_rxen_lat(struct rtw89_dev *rtwdev) static void rtw89_pci_aphy_pwrcut(struct rtw89_dev *rtwdev) { - if (rtwdev->chip->chip_id != RTL8852A) + if (rtwdev->chip->chip_id != RTL8852A && rtwdev->chip->chip_id != RTL8852B) return; rtw89_write32_clr(rtwdev, R_AX_SYS_PW_CTRL, B_AX_PSUS_OFF_CAPC_EN); -- 2.25.1