Message ID | 9ab4a1bc06723fcf2d9f6cbfd9ea4067c56d40d8.1689714291.git.daniel@makrotopia.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2033969vqt; Tue, 18 Jul 2023 15:01:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlHitjj5irkql9k6YpdpIDbn3v+YBYCB0/4NCuoBSbhSTiRL1v2p2tMghgz7M7oARE84/93V X-Received: by 2002:a05:6358:3101:b0:132:f612:1dbd with SMTP id c1-20020a056358310100b00132f6121dbdmr12436501rwe.26.1689717709731; Tue, 18 Jul 2023 15:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689717709; cv=none; d=google.com; s=arc-20160816; b=wIU+VE/uVcgVoCoqODoEhjXydaRi2/XwkIUfwKTT0lcJQNY/g8w7qPN1LMAsIu+8Z4 wtcmfOP0KGqFIaLTy2uptjBs3yxuA1JitR0Ytd3nF+UNFzZn04FAQxef4mKpML9WGSZk dElZOU0IYBLUFaztvoI5DJgjOjK/kIuAxZeWNzLeMhlSKWwkGOtEgO5R7P6xer4QppJ5 3r8okKUO1l+PVPN5EeVJGFbF+FNrtE9sqK+uKpwvLNuf6OERUXYDRuok7Gb2cIu0lzuw VuEDIwc5gVHCQ8aUnI06ytTs83Vg6aS4U11AByFqtD57YnDQtfJezuln3U9KUfrMZdnQ +1nA== 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=F0gY55nZ4L6PcW8D8BMGTwyt3w84gFs+SQN0OrfEjNI=; b=KGQsSKpzdstv/9W1d8RCe42ZJ75xBGGT+08ycpj17MQ/tNeTgbAM++vXLnij/DSzCn lqyJ1++0uqTLQqt4weRTtU9iyvIa4IGlp4Mk3jdC8SkAVIk3SuAG3+XaiFwxWGylffsZ DjxspLwozemnDwW2XW1ynjvfCj5HcctRvaVixVyAxbQwIIVza3ei+1aFupYPNF1ewOGz 5Idr7sAr625nz8Cl7jK+RzaD7hOrpdGEGA+ogObXLYjJFruDKtyso5lKwshRfZBj/nC1 nFsxI46UmcJ/k4gP6F9uGSRV0VAjxuyHR8U6xT5yJTxQmuoowjfgYWwUD1GuKe0/5718 AS3w== 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 j62-20020a638041000000b0055be457e535si2192787pgd.137.2023.07.18.15.01.35; Tue, 18 Jul 2023 15:01:49 -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 S230127AbjGRVbn (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Tue, 18 Jul 2023 17:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231178AbjGRVb0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Jul 2023 17:31:26 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A99781993; Tue, 18 Jul 2023 14:31:25 -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 1qLsHr-0001LF-2C; Tue, 18 Jul 2023 21:31:15 +0000 Date: Tue, 18 Jul 2023 22:31:07 +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>, Florian Fainelli <f.fainelli@gmail.com>, Greg Ungerer <gerg@kernel.org>, =?iso-8859-1?q?Bj=F8rn?= Mork <bjorn@mork.no>, 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 v3 4/9] net: ethernet: mtk_eth_soc: increase MAX_DEVS to 3 Message-ID: <9ab4a1bc06723fcf2d9f6cbfd9ea4067c56d40d8.1689714291.git.daniel@makrotopia.org> References: <cover.1689714290.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1689714290.git.daniel@makrotopia.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: 1771797437090555319 X-GMAIL-MSGID: 1771797437090555319 |
Series |
net: ethernet: mtk_eth_soc: add basic support for MT7988 SoC
|
|
Commit Message
Daniel Golle
July 18, 2023, 9:31 p.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