Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4899598rwd; Sun, 11 Jun 2023 18:14:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Cqj5k96pYi69Jtrq/Jk5gKIzhR6wAzoHVyMsG3VqpwVtExn/tMqSal9uu5ZFln2ydw5Ld X-Received: by 2002:a17:90b:4b05:b0:256:2b45:8e1a with SMTP id lx5-20020a17090b4b0500b002562b458e1amr7140701pjb.25.1686532457659; Sun, 11 Jun 2023 18:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686532457; cv=none; d=google.com; s=arc-20160816; b=1DMa3RVd+NbC0847cxq4Psbi+cC43RS9vPwDxAppBqtBnVoBEB0H20tr3xtK03/Zr+ XQu5LZUsM2sdJ8TpHNCl5l04IH3IH+CV+lowpX4/Kbxp2t0U2bmlPCHswJGrK9RxpbOi BXG/1W6q21EqYKU/P1kDVSSDfNCyfO+XlkIOmNU+NxTYR96vCjpdesbjDAXPIXCU4Nol n/DMHne1I8Qda+8g9Zxcy6M7uOjundrcUg/k/HoRtxlc9Rq16wGs/TQySFnEcPIvAm/G h/qx2HXtKLeOiU+oCE6k6nfIN+PYjF0jfZ5MKJOy38xkZ2uJXzl7qdd+Oejcrok/9+WW B35Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=N3A2KSU4oo5gcYTUMtQkK2SuyVpYENDRYxhZ+HAezEw=; b=PVku/G+9IIE1mHL4XyxbbDd534Cq32VADCxM24I9xGpXSGaHrsOronO8qH5/K7GLPQ KBNPhW5nVO+4aEr2EDz5WKjHtP4PrZuYgbxg+NPLP2F4c9Tj9p2+9k6yTZuKpqZ7YFBi OoCiQxR1suipz7utT+eQ6R1vzvFCfQwMwhQFQRAteMAXcXcbD/Jvj4ypln7p81ow48I6 rmaLJ3p2In6d2yKyZ/u3DGTd5bEqo4mdc0RKkZUuhpWVaHflmC7EqV0f5FUL41vUF0LB atZxfynfA+PzBrv7/s8nKWSVkcj/urv0iUPfc3xnJbKBSRd+FM6wsyyW1FR1+iwlH4VO Pj8g== 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 m3-20020a17090a3f8300b002594c8d950csi7742897pjc.89.2023.06.11.18.14.05; Sun, 11 Jun 2023 18:14:17 -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 S229464AbjFLAiv convert rfc822-to-8bit (ORCPT + 61 others); Sun, 11 Jun 2023 20:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjFLAiu (ORCPT ); Sun, 11 Jun 2023 20:38:50 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19F4D135 for ; Sun, 11 Jun 2023 17:38:46 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 35C0cOAU1005175, 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 35C0cOAU1005175 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 12 Jun 2023 08:38:24 +0800 Received: from RTEXMBS05.realtek.com.tw (172.21.6.98) 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.32; Mon, 12 Jun 2023 08:38:42 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS05.realtek.com.tw (172.21.6.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 12 Jun 2023 08:38:41 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Mon, 12 Jun 2023 08:38:41 +0800 From: Ping-Ke Shih To: Kevin Lo CC: "linux-wireless@vger.kernel.org" Subject: RE: [PATCH] wifi: rtw89: use the correct bit in the R_AX_PLE_INI_STATUS register Thread-Topic: [PATCH] wifi: rtw89: use the correct bit in the R_AX_PLE_INI_STATUS register Thread-Index: AQHZmqVjsIXsIWMjREWpyKsynom8xq+GVpMg Date: Mon, 12 Jun 2023 00:38:41 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS05.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,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 > -----Original Message----- > From: Kevin Lo > Sent: Friday, June 9, 2023 3:38 PM > 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 > > 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 Acked-by: Ping-Ke Shih > --- > 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, Luckily, definitions of WDE_MGN_INI_RDY and PLE_MGN_INI_RDY are the same, so I don't really need to verify it. > 2000, false, rtwdev, R_AX_PLE_INI_STATUS); > if (ret) { > rtw89_err(rtwdev, "[ERR]PLE cfg ready\n"); > > > ------Please consider the environment before printing this e-mail.