From patchwork Fri Jan 7 05:37:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Angelo Daros de Luca X-Patchwork-Id: 1576480 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=RDJcmsdR; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=peSmMt6A; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JVXRl3sz4z9sXM for ; Fri, 7 Jan 2022 16:52:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pGG0KalEvtJ5v9ClG1kRSt1caxukxQJym2+0F+VTS1Y=; b=RDJcmsdRa3IK6F Of3SAf5QASzYEvR/fZEDUBYcJsZGr6PCTPyfnvlhaDaez8uTryjHSJEjHklZpVexdAzzYxCWAF7Vj ZBmPFqFhx8XwzClBkhY8JxMqKaJAYYClpxbqJG8DBvLs1YN64kswkzdZ91GzY/MOEKZa1OpYdH+Qw nTB0v8B33R32cKVR1YZfudothpeeF3/8fUh3OpfZO4WUQ/sCjOpJjFBBOBHXZWh/MqsVd3OmnO2nD v3PwF5GMIaQN7JUQ969YPr8+Dm7bH3b6R1rJbYkk9jzE14qG4/MX1WhTN0lGmoQGsMeWwPnMflpBG BHL9j/7b1SybO9a5oI4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n5i6e-002UcK-LF; Fri, 07 Jan 2022 05:48:05 +0000 Received: from mail-ua1-x92e.google.com ([2607:f8b0:4864:20::92e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n5hwX-002QsD-7X for openwrt-devel@lists.openwrt.org; Fri, 07 Jan 2022 05:37:39 +0000 Received: by mail-ua1-x92e.google.com with SMTP id y4so8447613uad.1 for ; Thu, 06 Jan 2022 21:37:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qNBvnF6et1jnwepS25F1dHRqqXp7Rqlf9vOXU58/a/I=; b=peSmMt6AP1jpsN2J9XNQfO/4+b0/DrorKCOBCT/Va2UUn00Xl42cjaVVeioqnR5Bqk ytgPIPBGOYLJj1LfZdm1IjE7JG63GtE5xYkmARYe7WefE5CgYeoS+OMMGkfp5r+yrPe8 N08NjvV+yFe8YvJg2FAW7iIpWqAkD/p82lblb0bZrSgVrbuRqHOv+8GXGC+qYQ+Kh8G/ VKMq7B7MCDo48Kqxhmu2Xpt81hJ5MjiR/RzUPi+hJSdXC2ULIe1Rhati5FJEiq5QFqAK 1qBYIYDbwLcFr+xU5xiGSdNCHFjtx5hsXbzYx3XYdalQjhQiVfhCuvc3T46mJ5g0Z6t9 G/Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qNBvnF6et1jnwepS25F1dHRqqXp7Rqlf9vOXU58/a/I=; b=u9Xi1kqWYvA7f6TLzusnApW/R2pf9Og6VBDWo8VHEbLtlBTqWrgn/ZLYyAaznO3QQI oijRZOaUaW3oYFOJ2fVbddbEkxSR4S03Ra+BVrg/ZY9gGHFgvvlpTBorNYnx7MScDa4N fXYaGG42gvq0qA2iQe3cCJsaUdXOjRbRSnfnaxuIUHy4z0DRJ570gc+3X6oCISAnbkZ1 InuSFFZl3uCSqCOQVEjIWyMKrkVvQ5nvW6+LaBUCMmKN5g1OoE4dVshQHYyOu1eZSSM2 QWmRDriqG27eR47c8YqdYfAcBfWqbTjHTY+mHSxhKi6kT8qZ9xRnwgPb7gciBRUBsaQz Fjdw== X-Gm-Message-State: AOAM530vdKDrwir3jtelqEKKnRHnmKYYKS609m332diUB+HdGc/1KSOM KhfYZqrrfMpPDDafNbT7xk7URb+7VYo= X-Google-Smtp-Source: ABdhPJw1feJ0JC8jiSi8E0TAU814TawS/K8e26vct/6Nkv0iDNOA2mfFj5Zu4qQkhrLUszDp5FoMog== X-Received: by 2002:a9f:2acc:: with SMTP id d12mr6683157uaj.109.1641533855630; Thu, 06 Jan 2022 21:37:35 -0800 (PST) Received: from tresc043793.tre-sc.gov.br (187-049-235-234.floripa.net.br. [187.49.235.234]) by smtp.gmail.com with ESMTPSA id g139sm2724096vke.17.2022.01.06.21.37.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 21:37:35 -0800 (PST) From: Luiz Angelo Daros de Luca To: openwrt-devel@lists.openwrt.org Cc: Luiz Angelo Daros de Luca Subject: [PATCH 2/3] ramips: ethernet: ralink: fix MT7620A_GDMA regs Date: Fri, 7 Jan 2022 02:37:22 -0300 Message-Id: <20220107053723.21341-2-luizluca@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220107053723.21341-1-luizluca@gmail.com> References: <20220107053723.21341-1-luizluca@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220106_213737_301911_E58CA147 X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Registers in MT7620A_GDMA_OFFSET range were incorrect, except for the first one GDM_FWD_CFG (which is actually the only one in use). The next and last register is GDM_SHPR_CFG. All others are not ment [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:92e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [luizluca[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Registers in MT7620A_GDMA_OFFSET range were incorrect, except for the first one GDM_FWD_CFG (which is actually the only one in use). The next and last register is GDM_SHPR_CFG. All others are not mentioned in docs. Signed-off-by: Luiz Angelo Daros de Luca --- .../ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h index 968db366cf..6b81946e30 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h @@ -152,10 +152,7 @@ enum fe_work_flag { #define MT7620A_GDMA_OFFSET 0x0600 #endif #define MT7620A_GDMA1_FWD_CFG (MT7620A_GDMA_OFFSET + 0x00) -#define MT7620A_FE_GDMA1_SCH_CFG (MT7620A_GDMA_OFFSET + 0x04) -#define MT7620A_FE_GDMA1_SHPR_CFG (MT7620A_GDMA_OFFSET + 0x08) -#define MT7620A_FE_GDMA1_MAC_ADRL (MT7620A_GDMA_OFFSET + 0x0C) -#define MT7620A_FE_GDMA1_MAC_ADRH (MT7620A_GDMA_OFFSET + 0x10) +#define MT7620A_FE_GDMA1_SHPR_CFG (MT7620A_GDMA_OFFSET + 0x04) #define MT7620A_RESET_FE BIT(21) #define MT7620A_RESET_ESW BIT(23)