Message ID | 3563e5fab367e7d79a7f1296fabaa5c20f202d7a.1690246066.git.daniel@makrotopia.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2165549vqg; Mon, 24 Jul 2023 18:34:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDJ+7H72/ysk2N3aXBNKLA/Fe+BMZHOs2mythJUhkZ4h1+rtTA1vM0m0MK0VrAn6hS+FdB X-Received: by 2002:a17:906:5d:b0:977:eed1:453c with SMTP id 29-20020a170906005d00b00977eed1453cmr10430268ejg.73.1690248846750; Mon, 24 Jul 2023 18:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690248846; cv=none; d=google.com; s=arc-20160816; b=wjc2mgXAmcxgY7AnUeUGy+hn3kYZCjeCaK+O4wAKuSjTN6HdRAvJJKvQVlGzTypucJ 9RipFulhoRNrUBcIfE7+R84vOzO2p4992RKSKzgZMirgcfgyJZNfTCDBQ1SoOebFm7As +NPNMENbtc6K4nHLwHjM3JET5bnA77EqWk7UQzqnEpEr8Wm/1GBiI3ZTKz2WZ+5yu1wx y9docp2TXh6HsjPLAN/QVqS41DAKZHil997X6zRgDpJgYbI51HgalPHULweITTRMGT38 Xctmqw5TzBUvxPuYA3Ms8VNH7PdOOHGYQJgIOREVfuhRES1PoFIRShXEs4byIFOeUBJ8 KIIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date; bh=kj9Ml8F3irRUgHRWA7sHIbIBxOr4NUL1nv1trxOCNuU=; fh=FkVrQLuCFccWJGxSUzyAk/DK5o2oCA6wNNdIT6QZABM=; b=yfZotgpAhyu6mEXyFgyxs2y8AcTdbXQh5bx6zuBOoknCZimEz+iYWavBI2eNYZ8QMc CcCEUrOMrXPyT0b6T9b3ZEBI8X+/n5ovdYKWNBsj8mOdK07GZKxsbnwWa63T88IQ9qMB lr+6myA9c41sZ4JbYbprGi0gkq76UNhZe4UyqLyBEfKArtD86SVyKgOfbjQOpBKp6DZz N91ojVMGdiQCoF6sgLwzSNIjbB0Mt2EozeSEFicdMs969CwDcLIuSv9GNqKakc2wAn/3 I8aV8XBcabvV7fEBuvTJ8V0CkpYHjHfWqaR6uuB5BwQ7BLbDOv884FuEaOM/kHjGt6ek C1cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020a17090611cd00b009930c0374basi7655082eja.632.2023.07.24.18.33.42; Mon, 24 Jul 2023 18:34:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbjGYAxG (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Mon, 24 Jul 2023 20:53:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbjGYAxE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Jul 2023 20:53:04 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 399FF1BCB; Mon, 24 Jul 2023 17:52:48 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from <daniel@makrotopia.org>) id 1qO6Hz-0004UR-2T; Tue, 25 Jul 2023 00:52:35 +0000 Date: Tue, 25 Jul 2023 01:52:27 +0100 From: Daniel Golle <daniel@makrotopia.org> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Felix Fietkau <nbd@nbd.name>, John Crispin <john@phrozen.org>, Sean Wang <sean.wang@mediatek.com>, Mark Lee <Mark-MC.Lee@mediatek.com>, Lorenzo Bianconi <lorenzo@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Russell King <linux@armlinux.org.uk>, Greg Ungerer <gerg@kernel.org>, =?iso-8859-1?q?Bj=F8rn?= Mork <bjorn@mork.no>, Florian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next v6 4/8] net: ethernet: mtk_eth_soc: increase MAX_DEVS to 3 Message-ID: <3563e5fab367e7d79a7f1296fabaa5c20f202d7a.1690246066.git.daniel@makrotopia.org> References: <cover.1690246066.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1690246066.git.daniel@makrotopia.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772354374316196223 X-GMAIL-MSGID: 1772354374316196223 |
Series |
net: ethernet: mtk_eth_soc: add basic support for MT7988 SoC
|
|
Commit Message
Daniel Golle
July 25, 2023, 12:52 a.m. UTC
From: Lorenzo Bianconi <lorenzo@kernel.org> This is a preliminary patch to add MT7988 SoC support since it runs 3 macs instead of 2. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Daniel Golle <daniel@makrotopia.org> --- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h index 1c28bf3731831..297b1ba4853fa 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h @@ -1042,8 +1042,8 @@ struct mtk_soc_data { #define MTK_DMA_MONITOR_TIMEOUT msecs_to_jiffies(1000) -/* currently no SoC has more than 2 macs */ -#define MTK_MAX_DEVS 2 +/* currently no SoC has more than 3 macs */ +#define MTK_MAX_DEVS 3 /* struct mtk_eth - This is the main datasructure for holding the state * of the driver