Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1716102rwd; Fri, 9 Jun 2023 00:44:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72ZYu9cSpbFqM+LUyFMm8Al2xox9Fkg2xT7LHzaDX/FM5gqFTxEXdIsDDeEM4zCZm6DG5A X-Received: by 2002:a05:6a00:22ce:b0:64d:2c58:f86f with SMTP id f14-20020a056a0022ce00b0064d2c58f86fmr499281pfj.0.1686296698184; Fri, 09 Jun 2023 00:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686296698; cv=none; d=google.com; s=arc-20160816; b=ANKqqO9m54uIT5JaX6e0hqIuCOCc0Z9FTwy87CH2C3Bu3MAQRro3DospsLpYe2KKBW 1tVeuzk7urtkPj8on1Y/FEWSB8J2dUUHv8ohsIMExHO92f+s7+IFpg1+KFIK4HkhJAvv ZgCOrD1lD3LCPBS76z+InRs5avigaPERQNqxWfInxRqIBQFDoYoHqB6jlh5uISKmMOyj zChHLcuy5YfEh4rEuvZvI9MtCA6yWruYdJEHzjJVoBZbbkoWiWnz+nraAaD+x6wllm2A 5+BSJDHJLzMTrY3jWjisriImUUiOXLkUgh4hm57T1c31Tx0IQDcCFUS4NBqQfpd652Ux 2Xtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=Aui0NFb373+016wB+R3KhvorF2IU/lXhsJG83BM1QMc=; b=YCgNXv9mB18ZpQXasjyEuiD0E2n3OeTphk+LeDwqgAM+TG5jaPVrPkGUcjlOI7UNxA E/8Et+5WuVIOl6xAHx8NOn6IYMBPtY5755Hwmx/75aQ2rtYRdINuWnc5MGTHKlUrm1i5 bQv0O8apBqj0w3YSCUc2/GG+hbSlQZOGHswlblL9l0IqYQsbsY2a/9fuwuGrX8z4XzZ+ HWwteAAFP1jbrMmycNO/M/kXJkrD1dV2CRxbjJGWh0ci6gPcr5KK1HHWTmMGvjnE4Ewv svBNpO9IoYwFSXfGdGBDPynR1afzFRWNiRr2Gfd3PIbixOo+W1RAHsoLSthfKO3EB81Q 5fRw== 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 l190-20020a6388c7000000b0054481da6ee5si2288162pgd.418.2023.06.09.00.44.48; Fri, 09 Jun 2023 00:44:58 -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 S236906AbjFIHis (ORCPT + 61 others); Fri, 9 Jun 2023 03:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238956AbjFIHib (ORCPT ); Fri, 9 Jun 2023 03:38:31 -0400 Received: from mail.kevlo.org (ns.kevlo.org [220.134.220.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14254193 for ; Fri, 9 Jun 2023 00:38:29 -0700 (PDT) Received: from localhost (ns.kevlo.org [local]) by ns.kevlo.org (OpenSMTPD) with ESMTPA id 37234dea; Fri, 9 Jun 2023 15:38:25 +0800 (CST) Date: Fri, 9 Jun 2023 15:38:25 +0800 From: Kevin Lo To: Ping-Ke Shih Cc: linux-wireless@vger.kernel.org Subject: [PATCH] wifi: rtw89: use the correct bit in the R_AX_PLE_INI_STATUS register Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Use the PLE_MGN_INI_RDY bit rather than WDE_MGN_INI_RDY to check if PLE cfg ready runs into a timeout. Signed-off-by: Kevin Lo --- diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c index 512de491a064..4e0cec7c59a2 100644 --- a/drivers/net/wireless/realtek/rtw89/mac.c +++ b/drivers/net/wireless/realtek/rtw89/mac.c @@ -1814,7 +1814,7 @@ static int dle_init(struct rtw89_dev *rtwdev, enum rtw89_qta_mode mode, } ret = read_poll_timeout(rtw89_read32, ini, - (ini & WDE_MGN_INI_RDY) == WDE_MGN_INI_RDY, 1, + (ini & PLE_MGN_INI_RDY) == PLE_MGN_INI_RDY, 1, 2000, false, rtwdev, R_AX_PLE_INI_STATUS); if (ret) { rtw89_err(rtwdev, "[ERR]PLE cfg ready\n");