Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp750694rdb; Thu, 8 Feb 2024 23:01:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVqSNVyCFVjbJvG5PEFL/KjmdVaffvtSfUW6n183OsLKCzKGvc1gb3kA4AxrSILks01V2++InyxoALgG2HSSHlU+WrufrdOsNgCwuHKnA== X-Google-Smtp-Source: AGHT+IFxCL73/MrNtKwU48Ubygs86irgW/88B7n6PrE8vUyDDXAgiKBxO1VoN8dUPcaYpPbcAFcd X-Received: by 2002:a17:903:32c5:b0:1d9:5563:431 with SMTP id i5-20020a17090332c500b001d955630431mr219502plr.7.1707462063232; Thu, 08 Feb 2024 23:01:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707462063; cv=pass; d=google.com; s=arc-20160816; b=V567Lw/DlE5ji8C3eXaMQQH40SaJZHG0nOHb++OdUu1ZDp/JmM79NUEoaAe+a2brXK FkEog2S7W4OosIaz1M107mLgQzbAlRSSQ2LEvEItI+M3e8EoQlD7q3AZOUS66oonuruL pCLlCwi/+ARRGW1LLfavrD1JZOtFTPWcDJ1NwhKzQyZbooiXdeHg0caGmfbhq85aNEiF 8OPs+292rAv061I9V1UVSirjB9S+cMXmL4JKfuBXXVJfNn9hiJHS/QpHZFZKsuotfBuB UMzB1tHiK+7h/f41H/gWHe5792FP0ZpxfM9H57SDF3z+GCpKDRiULOsHg1I/SBefSEl8 8QzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=KqmOzcFP9Q7rdAY3TOR+ENcEcMdm/TPL4Is6hLLOoW0=; fh=lpK1W2vTTMcYdEanb3Gu/PHLXLKsBUqU26U8cJ8fLn4=; b=Rb6cUWrFogOwA8fGxuPnGWhfh58M4joFQ66JNcqY4cGijwd50/b1ONYbAAWOH7d5Ps h2j25TMSDjIyfEtWdRlpNDhnPbJZol+PkhdPKk1/mMwLSXeVc+WF6k6ugpFJ+vUCKxdU qB/OMmPB6aSuelaTBxuEdOJtqe0UCk6jfmvJenXIgJtnWsTGCWFWAF5Q5xG1W0PfjxMN VxxrliaZZvCsmtTSJuBsF7VIsoeu6l2FpklUjcjSPa6HsIh33FSXaG64fxp4+NW4QXT/ 8p7UN04wASyUGM07SUl1mui1rNd5d8+FrqOD3ti9PgfpzWWE4hub/HRShGoXaLHuIINM YJaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-3373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3373-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCV2/PJIthViTDqpycb5aP0zVA5zlEgJ/8p/pDc+qt/WjuzNuFzdOR3BaGJ8k2BYXfKeRevOnBqtCTXASw5A0lvDGo2TOfu8TgvwmAnh5w== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b4-20020a170902d50400b001d937c12c9asi1220267plg.426.2024.02.08.23.01.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 23:01:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-3373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3373-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A60FEB28B28 for ; Fri, 9 Feb 2024 06:53:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFB8B657BD; Fri, 9 Feb 2024 06:53:40 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BEC6657AA for ; Fri, 9 Feb 2024 06:53:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707461620; cv=none; b=XXDO6y73ARbs+brObNy9xHqC3C+WdBMhKJ0w0uPiBJr0SDdognT+G6QkOB5WDMdT7xoIuZI0AxKeFGgTKpRkwcDquYtlCVRaISjXPu8Cefw6ANsjyDols6C7FZYV2onM2llxCDNuLHul8AKl1k1qv0vcjvO35EGKVLRirWyYwvA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707461620; c=relaxed/simple; bh=4anTWcIkkHi0TT4n1HG10rIQtDTv+PkbDnVY0y9rMvM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OG7B7Wkcd90OthuXauu98vWzRNaveHIp54I9Or0RSN4hi8GO13B+CMEiv4hLEan2FB+/Ri0O3L5EE1OW3l4wpavB+luVYnSHR65vbMENng1M5ckSLb3xN7o4mFz5ecZfauGkic9I+vKfS9AQB1uPWJucduZG5aReWFwxKKgLE3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 4196rXHn9548396, 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.95/5.92) with ESMTPS id 4196rXHn9548396 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Feb 2024 14:53:33 +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_256_GCM_SHA384) id 15.1.2375.32; Fri, 9 Feb 2024 14:53:34 +0800 Received: from [127.0.1.1] (172.16.16.210) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 9 Feb 2024 14:53:33 +0800 From: Ping-Ke Shih To: CC: , , , Subject: [PATCH v2 04/11] wifi: rtw89: mac: correct MUEDCA setting for MAC-1 Date: Fri, 9 Feb 2024 14:52:22 +0800 Message-ID: <20240209065229.34515-5-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240209065229.34515-1-pkshih@realtek.com> References: <20240209065229.34515-1-pkshih@realtek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) 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 Consider mac_idx as an argument to set this register to disable QoS NULL update MUEDCA timer. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/mac_be.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/mac_be.c b/drivers/net/wireless/realtek/rtw89/mac_be.c index e2e0a7549b53..fdbfb76f97ee 100644 --- a/drivers/net/wireless/realtek/rtw89/mac_be.c +++ b/drivers/net/wireless/realtek/rtw89/mac_be.c @@ -995,7 +995,8 @@ static int tmac_init_be(struct rtw89_dev *rtwdev, u8 mac_idx) { u32 reg; - rtw89_write32_clr(rtwdev, R_BE_TB_PPDU_CTRL, B_BE_QOSNULL_UPD_MUEDCA_EN); + reg = rtw89_mac_reg_by_idx(rtwdev, R_BE_TB_PPDU_CTRL, mac_idx); + rtw89_write32_clr(rtwdev, reg, B_BE_QOSNULL_UPD_MUEDCA_EN); reg = rtw89_mac_reg_by_idx(rtwdev, R_BE_WMTX_TCR_BE_4, mac_idx); rtw89_write32_mask(rtwdev, reg, B_BE_EHT_HE_PPDU_4XLTF_ZLD_USTIMER_MASK, 0x12); -- 2.25.1