Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp756rdb; Wed, 7 Feb 2024 18:30:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVmF+FuqP3YvQIulutOkUnTLDTAprfFxZOr4yrXuEXN9ETygr00jrDugOqqiPxg1M50ruyRv4xJ0pH+vptUUF4DG3CDUd/y6bLrku64qQ== X-Google-Smtp-Source: AGHT+IEoTmLmG2LXFfhvmEYvCVVoiIILnCH2IgpoChtT4NWlPVsDazoi3AFTR9N05nVKJRpGODcV X-Received: by 2002:a05:6808:22a0:b0:3bf:e5be:350 with SMTP id bo32-20020a05680822a000b003bfe5be0350mr6909086oib.26.1707359412748; Wed, 07 Feb 2024 18:30:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707359412; cv=pass; d=google.com; s=arc-20160816; b=XAHEmBS8Ioew0q5asOVI5MYxke8+0UBfnYh92arcuGoQBXY3KHUWvJ9LRaZvgs4Nsu dH0LKkyb1nNZptx2Wbo4DIWoiUJKmr3ndK/1De+TQ+6U3vdsKpr9b9LbSq/OLiHa9o7t qDlPglyQYGTaOsrhRsmhcYIWixNSJdYO3BXce6wMWACmIYYucsIfvgUMo3wHElHuh2Ff mj6/gEK0gx+HgixrYa4WXzIx6q7R4CJftl/aQ7C1lt8YkU6puOGMwVi0hbG0BLek7SFq f/TPmE1pPYN+wHqyFTDbR2yxg/lvtJtO9VOhIZuDeN1v5svJgDatZr69FV6Il1tUPh04 fijg== 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=mfEKzM78b1J1neuk8IneQ0j+Lnfgk2b8p990eV58mSg=; b=pDg5zLIMK9iAyURZ4wnYdaZzY65cfILavncNJwx2YGHPJE5z0GKW32QuQZDmU9x+wu 7HHxhrVklarczJJnkm1lUgBS2dvtp4MVvpjJ05QWABAo2Fsp3foaK2cKcaAGu470JG3a qeSJLP3l0a1GfpRwcrH9Gq1rAia7mw1rdfrQxBipBq/F3g0+epuzY3mK7BIwQZcHTopn St80b5I+5fZdzG5TjBz7ySRggTPfL7PYSNEN5MSWLhUCJDN06U5a3cveHQGxHzXqVE2o hHEsDjzK8yEok2/a8d6FQ7qtSjW28WOdvGaQrR5142mStaE/cQqlROR+pyM2w8/COrDv YNpA==; 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-3316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3316-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUdtXtp/g9nhIHg8Orqw3afjuWO7UsBRUqv8GxW9AYQpENYSBYuXLeJKQTSK6FAK8vq5F+ZI3LqphVqiqmqdq1Zu5C4fwz2Dj4LwRxyMQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z10-20020a056a001d8a00b006e0653afba7si3061338pfw.269.2024.02.07.18.30.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 18:30:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-3316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3316-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3B52D286FB5 for ; Thu, 8 Feb 2024 02:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08D971DDD5; Thu, 8 Feb 2024 02:30:07 +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 43B011E4BF for ; Thu, 8 Feb 2024 02:30:04 +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=1707359406; cv=none; b=eDietie3iezbvW2INrKev44PBSid54zgJeEfngJNFv+4zbAwZsUV5ggVsxrUdHYJt4z+tICi5Disw+12F62PFduJI1LlxYCryzmui3kERcsiiFF/lRQJqmSehrE6956Kc1YD+ke2K9vDCTOEE2cJUKg9WBMSBQDrIs4zqplfK8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707359406; c=relaxed/simple; bh=4anTWcIkkHi0TT4n1HG10rIQtDTv+PkbDnVY0y9rMvM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qw12VBUcWcEHBSo9IGsRYOwznqlsdGk7P1tk3UQqFzHaHzvCWy9Scv6FSN/w8IWmiIna7Go+yqUJOtjIQ5p9fNVI/Leudx11GGqJSrerS5fGoSacAyZEZwKoi2uOG/OU0/P9vba72XrysvM3OgbbkKNFXJVyfULHuVgOAvlX4tU= 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 4182TxDX2191882, 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.95/5.92) with ESMTPS id 4182TxDX2191882 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 8 Feb 2024 10:29:59 +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_256_GCM_SHA384) id 15.1.2507.17; Thu, 8 Feb 2024 10:29:59 +0800 Received: from [127.0.1.1] (172.16.17.45) 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; Thu, 8 Feb 2024 10:29:59 +0800 From: Ping-Ke Shih To: CC: , , , Subject: [PATCH 04/11] wifi: rtw89: mac: correct MUEDCA setting for MAC-1 Date: Thu, 8 Feb 2024 10:28:50 +0800 Message-ID: <20240208022857.14379-5-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240208022857.14379-1-pkshih@realtek.com> References: <20240208022857.14379-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) 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