Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp926145rdb; Sun, 20 Aug 2023 08:53:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTwDgQun8NM+fCxwVpC2AwaZFAeHLeLFMe45PW7Ai3UjcOCsC27Zx09VIjbsv+GUYXffh/ X-Received: by 2002:a05:6a20:7355:b0:140:2ec5:2bd3 with SMTP id v21-20020a056a20735500b001402ec52bd3mr5729057pzc.27.1692546829308; Sun, 20 Aug 2023 08:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692546829; cv=none; d=google.com; s=arc-20160816; b=Y+zHBIrGMqqY3uuGxMdDJaG2UwIEtrm0LLcTT/hwTyrhyUVz56vte4556CHarMSGZo KYZSpveQzECtLanJnsWybS/G4HSMcaJA7C7Eyj4rIeqcF16EQiNGkOsHi8mFyxdWck/A EqXP3vd583/fuLGmtOpH460TxgVDVdRF2Drw3s1iG6GhEwwusyEchliK/UsR+kM9LNVI gaGgrxUGhq9ST02bF62xU0xV5FwDYGjvHI+SWkApQAUd3qrlavsZWcwIPrOOmr2mU/qf sqqzgOsjMklNH8lgqsXBahi0KVW5hOn+dByaE5m01nHtYTCSS3jGCQdsGu5q0VHFtkM0 zkdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Hivvnfk5CmpeuLkc39eBdb7z8a3eSNDNL5QJG8QOI3w=; fh=MXiEBe39BGvQr4EuIas3ehfmU9VgJUgKUy4wMy7Qjj8=; b=yjn1xbCtryMWAPSDaOKJIlU5CtFXtBmCKjJWC6MfkN04sosim5VCDwDmRwatOYzbUl 8kvC4SKCZoTLQR9O7WZ5dNCjuKWAeN8+PLHBrRky0pj2yzaILT/bKD8in1awsqmUfkIR FKHI6hDODFbiJU9Zc4X6Y/rpxmW2hWbGX7OOWwH4ErNGc+r4eoGqrKuMW49VvrFzBoZc J6Ue+lgSGQp5Ru871XaYIfMJGG8rjWzBmsSSLj3JPkUTQ3iUy5hm48TWi2zANjp2R+f3 lVtJM/zEX0isUOSlnrhB8c+MIjgNKXgPNaJiyuieAF+ZVJTdoaLYIB/Ii74xZogk8lg3 qSvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=TSOPWIlj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h2-20020a635302000000b00565403cf948si5550245pgb.495.2023.08.20.08.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 08:53:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=TSOPWIlj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5478B3BCB53; Sat, 19 Aug 2023 12:17:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353367AbjHQPx0 (ORCPT + 54 others); Thu, 17 Aug 2023 11:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353351AbjHQPxI (ORCPT ); Thu, 17 Aug 2023 11:53:08 -0400 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E16730D6 for ; Thu, 17 Aug 2023 08:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Hivvnfk5CmpeuLkc39eBdb7z8a3eSNDNL5QJG8QOI3w=; b=TSOPWIljQdZz7JMgwenx92/PZJ ozcR8bXcQ93yH68Hj7jZM1W18kGyYoaJFmI04GuMwun+12ZKDnY8ll3zjqUfie6zaidxowoEzduAL NLzDU6QA/CRS7t8s32AyyRolAQ9zvcy79JhVQi2DOarEgAv9/tg+Jxx+0CVfgP1sSFHg=; Received: from 134.101.185.184.dynamic-pppoe.dt.ipv4.wtnet.de ([134.101.185.184] helo=Maecks.fritz.box) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1qWfJ2-00AmKH-DG for linux-wireless@vger.kernel.org; Thu, 17 Aug 2023 17:53:04 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 4/5] wifi: mt76: mt7603: add missing register initialization for MT7628 Date: Thu, 17 Aug 2023 17:52:57 +0200 Message-ID: <20230817155258.62636-4-nbd@nbd.name> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230817155258.62636-1-nbd@nbd.name> References: <20230817155258.62636-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE 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 Ported from the vendor driver code Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7603/init.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/init.c b/drivers/net/wireless/mediatek/mt76/mt7603/init.c index 0762de3ce5ac..dd3c96f96999 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/init.c @@ -184,6 +184,13 @@ mt7603_mac_init(struct mt7603_dev *dev) mt76_set(dev, MT_TMAC_TCR, MT_TMAC_TCR_RX_RIFS_MODE); + if (is_mt7628(dev)) { + mt76_set(dev, MT_TMAC_TCR, + MT_TMAC_TCR_TXOP_BURST_STOP | BIT(1) | BIT(0)); + mt76_set(dev, MT_TXREQ, BIT(27)); + mt76_set(dev, MT_AGG_TMP, GENMASK(4, 2)); + } + mt7603_set_tmac_template(dev); /* Enable RX group to HIF */ -- 2.41.0