Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4231111pxk; Tue, 8 Sep 2020 14:19:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzspwAaryfyz3l2APSzv3cZvKkwFvtwkeLjwt7/mRZoDsheJ6MVltzZUvpXVkNA9oSyk5FF X-Received: by 2002:a17:906:68d2:: with SMTP id y18mr410653ejr.197.1599599998776; Tue, 08 Sep 2020 14:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599599998; cv=none; d=google.com; s=arc-20160816; b=ODHyn9RJ5YH9Vo4L3HlzPl6oKePZQrWHL9m5xS86dL2WjRP09W25Bzuk3+zsshyl0v 8k9NTys2jXWY0e2Pc5QYv+N/7OJT//4a//zkknWNMcJqlnh+rB9yRG2sCSLyheFeLS4i fyuBm0wr48Gxe2oM5Or0opcgg/4KYIYO6aNYBibFHmV+qPvImv42bT78wtz6Iyn8u0Yu oJ98zfUmxhROfTyjo4pkJNlcDNGAtvwPjXiqpa67X6s8/OGhobUup307h9WDj4LVgm/W QuNz8HQDwyNi2lu4WRM3GcV7sZIGZXFkar1CnWocY0Xwb0H/fRTR8hobiJWQryKQ5QNO StVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=Q0/dp04+WwOiXGx5hxNk6pkFfeocyh5P28C7NhQSm6Q=; b=h05JPfJVt/I55K2TgOZf6MrlcM1AWfM7diCzSWmSFVgEIkSl3Z/sCm1TIsZAEEvVmS SKTQR0nlhJ1A8BBjHywggIm218geMkk9Rmc1o7CLm6TfFj1bWOcJwWWkNgFssAfmUhRN P8BDtnBNar1kguAz2pOMkDOIpPYpqYWI1ZaJndQgCxOqfMGWLPCRLqx4KXNk6gnIm/Y0 1IQlbGbZcZ/DPdtPDxTuS5QHGVzq9MPVtwKCKNJ2vHHGsKJzPbTkl1MXTSpwTuwdEoyN dGolJAWQhBkLnus8HZMm5OUNhJZs/gJuGxsFGntkzA5cELNzdKxwL7ravVE1utEyGCOL heqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=LQtwEYsh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 19si136692ejz.498.2020.09.08.14.19.28; Tue, 08 Sep 2020 14:19:58 -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; dkim=fail header.i=@nbd.name header.s=20160729 header.b=LQtwEYsh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730192AbgIHVSM (ORCPT + 99 others); Tue, 8 Sep 2020 17:18:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730150AbgIHVSE (ORCPT ); Tue, 8 Sep 2020 17:18:04 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E39F0C061757 for ; Tue, 8 Sep 2020 14:18:01 -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: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: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Q0/dp04+WwOiXGx5hxNk6pkFfeocyh5P28C7NhQSm6Q=; b=LQtwEYshH2d+QQNfr/EH7rPT1k s1Zid346Sue3I7Dwg1izovXFVc0xco7GmOIR+bCb5ti/LAOAYJseO7RvUhGD5TFV0DeBoTVESc44F A72rR/g8shGWvRnpTPvQtCmWUDfWOIIRWG8NRuMrz194jCOZBk3IPcMmJPyiHQHUkGP0=; Received: from p4ff13fcb.dip0.t-ipconnect.de ([79.241.63.203] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kFl02-0002Cx-6L for linux-wireless@vger.kernel.org; Tue, 08 Sep 2020 23:17:58 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 01/11] mt76: mt7615: fix MT_ANT_SWITCH_CON register definition Date: Tue, 8 Sep 2020 23:17:46 +0200 Message-Id: <20200908211756.15998-1-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This is used for testmode tx antenna selection Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/regs.h b/drivers/net/wireless/mediatek/mt76/mt7615/regs.h index 9137d9e6b51d..61623f480806 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/regs.h +++ b/drivers/net/wireless/mediatek/mt76/mt7615/regs.h @@ -575,7 +575,7 @@ enum mt7615_reg_base { #define MT_MCU_PTA_BASE 0x81060000 #define MT_MCU_PTA(_n) (MT_MCU_PTA_BASE + (_n)) -#define MT_ANT_SWITCH_CON(n) MT_MCU_PTA(0x0c8) +#define MT_ANT_SWITCH_CON(_n) MT_MCU_PTA(0x0c8 + ((_n) - 1) * 4) #define MT_ANT_SWITCH_CON_MODE(_n) (GENMASK(4, 0) << (_n * 8)) #define MT_ANT_SWITCH_CON_MODE1(_n) (GENMASK(3, 0) << (_n * 8)) -- 2.28.0