Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp3129374lkv; Mon, 10 May 2021 08:18:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAb5iboF/jU2GEe6Zd3MpC4sXeSl5VEPotXfHftpbzenIRE2ctV8ZEXtnXz4SPfabKZY15 X-Received: by 2002:a05:6e02:1d9b:: with SMTP id h27mr23287746ila.243.1620659930877; Mon, 10 May 2021 08:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620659930; cv=none; d=google.com; s=arc-20160816; b=d1GwJTPQafp5Vqxsh2354KiJqx2uHWNn0lsXIargtmdppBYw3VwnaxGdJmvqxraeyo dHF2/OrKLO/CTVAUCh5/tWeNue89mJCzMmynddx5dkkDEdSFF9a0TKHGVVozL17nU30S i2dGWFmSJZOJz+7PE0jmbA08BVHI2rUbuEojLIoMt13qK+y5Q5fmtmZkv2d0jAqBYetM TOCcpBX5P3H5e5aK0EFu0W5yAUjfpEIMfQZxUFzhp6dTE1Cs4texMeR5i8YKZb91AfoZ 37qaoydvlNCw6nx3uY35Npg4EtmWdpEvUEXJPzh0ELNql2yIgbsb6Raj/7ftDf6dW0EC ON2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=cpzOzjTKJDybjsMLk2j8sUNpLiUcr3aNNeSipnaWYs4=; b=KJIbKihzttybIsIKudfVPjXGbFQlpLx0UDx22Nhzve6mT+txLo80OsSovgsrGeH4pU Wxbt9Wtv6wfkkdjtk3sfIAU4RJHqntFY7r+2ueBQHgR72Hfaey1bKAfuqINCkL2bezfB xhwzmlza2JCibcyQocZ0E2U0aAmhG9lsiGzPiw+0dJsFiyS4NhwpTb7OPkvjk7VUAB7z azrf+qWcyaPZOXHRbTAGupErr02dbS1Bz/B4Q/klXeSsMUqMSawEfDpEIooeGzAk5pPl Rh4UdbYX0pZ6LCWuUvVwjrsf+GrAxhuY9cDxnCZRztVWiaVtGog3UR8XFG49XVkCwZWC fbZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a27si867946jab.118.2021.05.10.08.18.36; Mon, 10 May 2021 08:18:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234204AbhEJPSU (ORCPT + 99 others); Mon, 10 May 2021 11:18:20 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:56336 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S241775AbhEJPQg (ORCPT ); Mon, 10 May 2021 11:16:36 -0400 X-UUID: 49d4b55531e54163bc562105144275fb-20210510 X-UUID: 49d4b55531e54163bc562105144275fb-20210510 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1352332503; Mon, 10 May 2021 23:15:22 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 23:14:58 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 10 May 2021 23:14:58 +0800 From: To: , CC: , , , , , , , , , , , , , , , Subject: [PATCH 2/9] mt76: mt7921: Don't alter Rx path classifier Date: Mon, 10 May 2021 23:14:50 +0800 Message-ID: <1620659697-12048-2-git-send-email-sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1620659697-12048-1-git-send-email-sean.wang@mediatek.com> References: <1620659697-12048-1-git-send-email-sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 3886F8F6554AC4F76625E046C0B15BE9936678AC567C95A67B719FE920DD7D132000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang Keep Rx path classifier the mt7921 firmware prefers to allow frames pass through MCU. Fixes: 5c14a5f944b9 ("mt76: mt7921: introduce mt7921e support") Reviewed-by: Lorenzo Bianconi Signed-off-by: Sean Wang --- .../net/wireless/mediatek/mt76/mt7921/init.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/init.c b/drivers/net/wireless/mediatek/mt76/mt7921/init.c index 1d4ba5d0166a..6947d98287c0 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c @@ -118,30 +118,12 @@ mt7921_init_wiphy(struct ieee80211_hw *hw) static void mt7921_mac_init_band(struct mt7921_dev *dev, u8 band) { - u32 mask, set; - mt76_rmw_field(dev, MT_TMAC_CTCR0(band), MT_TMAC_CTCR0_INS_DDLMT_REFTIME, 0x3f); mt76_set(dev, MT_TMAC_CTCR0(band), MT_TMAC_CTCR0_INS_DDLMT_VHT_SMPDU_EN | MT_TMAC_CTCR0_INS_DDLMT_EN); - mask = MT_MDP_RCFR0_MCU_RX_MGMT | - MT_MDP_RCFR0_MCU_RX_CTL_NON_BAR | - MT_MDP_RCFR0_MCU_RX_CTL_BAR; - set = FIELD_PREP(MT_MDP_RCFR0_MCU_RX_MGMT, MT_MDP_TO_HIF) | - FIELD_PREP(MT_MDP_RCFR0_MCU_RX_CTL_NON_BAR, MT_MDP_TO_HIF) | - FIELD_PREP(MT_MDP_RCFR0_MCU_RX_CTL_BAR, MT_MDP_TO_HIF); - mt76_rmw(dev, MT_MDP_BNRCFR0(band), mask, set); - - mask = MT_MDP_RCFR1_MCU_RX_BYPASS | - MT_MDP_RCFR1_RX_DROPPED_UCAST | - MT_MDP_RCFR1_RX_DROPPED_MCAST; - set = FIELD_PREP(MT_MDP_RCFR1_MCU_RX_BYPASS, MT_MDP_TO_HIF) | - FIELD_PREP(MT_MDP_RCFR1_RX_DROPPED_UCAST, MT_MDP_TO_HIF) | - FIELD_PREP(MT_MDP_RCFR1_RX_DROPPED_MCAST, MT_MDP_TO_HIF); - mt76_rmw(dev, MT_MDP_BNRCFR1(band), mask, set); - mt76_set(dev, MT_WF_RMAC_MIB_TIME0(band), MT_WF_RMAC_MIB_RXTIME_EN); mt76_set(dev, MT_WF_RMAC_MIB_AIRTIME0(band), MT_WF_RMAC_MIB_RXTIME_EN); -- 2.25.1