Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp867690rdb; Fri, 19 Jan 2024 00:57:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjezkThnin2oxwrp7G7r+SiklrpHno7YcWbwefybMx0CtV5V5z4F5U7CRB6nBKckRuanzA X-Received: by 2002:a54:4381:0:b0:3bd:5306:cec5 with SMTP id u1-20020a544381000000b003bd5306cec5mr2517661oiv.79.1705654673181; Fri, 19 Jan 2024 00:57:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705654673; cv=pass; d=google.com; s=arc-20160816; b=Nh9RvnO9WEsAhX9PDAPMmR2hoSpWb4SMcThnLAYNPzzPURBc8R2bdixR5yTiNyDxl5 Z4psrpBhLzkcI0gv12zNUEARAFM2mZ2udhWsdAeUjRu8mzDG1Y4vUn948tbyqoPPkxCY 8X0v3bypQV3fLfcpvtQ49lJZdbyZHCh0P2LDaoRp+/nxyZHble5EZKd9Bzby5Jd991/B IFq0/gCEAURvaIiPMIE0Cr40LiJRDxODwAaoNUXbgWMAyGID7JnnX8OkLdkhbjI+oSe+ 8hMdIs1aCCrTClHpgSbOiweKR5CmOpR9gBc/KwYdS5zViscz5haW2FGJNYm110ksL6n4 BXJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Mxe9YMOLMzMZFhwTa8VmHQ3UMCw1Y/jz7/bPWaSqf7w=; fh=V8G9JPihRFi0nnXMuxZIV+rRq1BkrZslNiWM9Hq+m4s=; b=ynMnmwPNzKIfvi1zZ4qW4EDv0Smmp+5YzR+p9hCX2bRzCDYI23lZMTxn+r7ohWplLm xeBCYx1yEtZs2y8lraAJ91sAiACx0LT3D09XQanSrWMtCtBaoRAV1wVa6PNllIBnSosy UupONY6JgGa6m1VBCXmjLsAQcP7b6/b31dfY/UdIOD+4d9HxwKrAx00ETdt175/HkqI7 rtslV5Pq4nDXYazY6lQsDpe9nKucVLdtaish5kbN6f+EEDg9iXTf6gDqbxunySBNFVp5 DXdmSUTZMmZntwOE40uR5G3L+eiXDk1C/mggH4HbV2dO/YyfoOuu+M7xV65xnpC63lhk xVTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="I/LwDJas"; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-wireless+bounces-2235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w7-20020a63b747000000b005cf9f0f1805si3009260pgt.229.2024.01.19.00.57.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 00:57:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2235-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; dkim=pass header.i=@mediatek.com header.s=dk header.b="I/LwDJas"; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-wireless+bounces-2235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com 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 CDF5128582F for ; Fri, 19 Jan 2024 08:57:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7729A22318; Fri, 19 Jan 2024 08:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="I/LwDJas" X-Original-To: linux-wireless@vger.kernel.org Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 593471E89A for ; Fri, 19 Jan 2024 08:57:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705654665; cv=none; b=nXwmHOWxj/XAMTfXG/K74hl59NgWLINTtg7+BXtB8+HEywc1TTSjD0pud4LfXZrDcukTRRfMrq9BUJOm5ngkeca05KzZmwGmgq+fgzEXviwS+7r1GnAZj9ojlG8ZRx7KvFqoutDEQ+LJec6Wjn2rlp91knA7boaS7YFgCCZ+6/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705654665; c=relaxed/simple; bh=TIQVWHy2JeByAOssW+huxkDCGg0L7fL6Pvf8CR29hpE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MAOBAFMEdKnMCo+6z0reaCrXu8xNory/pnTUmZUcXxkdqYYmgq1Tf4VHLlq3or7PuaiSLOkgg56kp54XCP0tyNBwpZU6oNl2VXscT+T8i85yL9Ckdj0R5x1mrtmpSsnPKcMNDdq/6ZKKrhcumxMWlBVOS2dMM+78IK9R8Xln+8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=I/LwDJas; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: cba82724b6a811eea2298b7352fd921d-20240119 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Mxe9YMOLMzMZFhwTa8VmHQ3UMCw1Y/jz7/bPWaSqf7w=; b=I/LwDJasM0riZBGPLvqjtrmVHiKP5EyHVFWvyybJGdc+FR9BHDBt1xrQn4U58gX8PjrrR1E8Hb5tMPGiHQQpQORvVgDfx7IT4oDgCb+QsOpnxE97UX5eZ3VhNXzfKvxGDUlI+6JNVcA3vEOzSk8yCDQho4NYuZ2oDiqda/0HYFQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.36,REQID:7e1e4312-4c60-4181-90b6-8eeadb421a2d,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:6e16cf4,CLOUDID:1e7b6e8e-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: cba82724b6a811eea2298b7352fd921d-20240119 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 499192073; Fri, 19 Jan 2024 16:57:38 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 19 Jan 2024 16:57:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 19 Jan 2024 16:57:37 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , Bo Jiao , linux-mediatek , Benjamin Lin , Shayne Chen Subject: [PATCH 12/12] wifi: mt76: mt7996: fix HIF_TXD_V2_1 value Date: Fri, 19 Jan 2024 16:57:08 +0800 Message-ID: <20240119085708.23592-12-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240119085708.23592-1-shayne.chen@mediatek.com> References: <20240119085708.23592-1-shayne.chen@mediatek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N From: Benjamin Lin Sync the value of HIF_TXD_V2_1 with firmware to let it correctly fill TXD values for HW path. Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: Benjamin Lin Signed-off-by: Shayne Chen --- drivers/net/wireless/mediatek/mt76/mt7996/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/init.c b/drivers/net/wireless/mediatek/mt76/mt7996/init.c index 5ae56b10f2b9..283df84f1b43 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/init.c @@ -493,7 +493,7 @@ static void mt7996_mac_init_basic_rates(struct mt7996_dev *dev) void mt7996_mac_init(struct mt7996_dev *dev) { -#define HIF_TXD_V2_1 4 +#define HIF_TXD_V2_1 0x21 int i; mt76_clear(dev, MT_MDP_DCR2, MT_MDP_DCR2_RX_TRANS_SHORT); -- 2.39.2