Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7403022rwp; Tue, 18 Jul 2023 15:02:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlFTK+c1TgQ0jCQrEEL/rpMBAbOQbPPyu4QyrlFgxK7BuQXFupn9X+hO7/a2uDKrbhciIfRB X-Received: by 2002:a17:902:968c:b0:1b0:75ef:ce3e with SMTP id n12-20020a170902968c00b001b075efce3emr11668294plp.25.1689717731209; Tue, 18 Jul 2023 15:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689717731; cv=none; d=google.com; s=arc-20160816; b=r12KXIOJy6HZ/MdIj/oCbU2+0+i4vNWouNzOTr4TGyDaa2shDfX2AgZmPuR93rTUaa u/9ngMuH2/Um1DA4JXKOTwov4uGCixIff60h3fTy4qL5wroODHb30KOyFl4JCc7VX3at 6ef4WSzMVhKBd5WjPS3xjM8KA3R2Pe7pk6y+ld1hduMm+Z7KfO33On+Scz7Lm8oy5DOe w9IxycJw/z7FKgkIHHA++xEtdL0TO5KqRWRszalCYmKVWp0VufdIduo5nyxV3MsbOt6R r+xk4UdHYvPjnSlj2GEjlytFBXB/xcV9waJghuN6QKZDnPlpRmYuZc7LJqEHcy92k4nx CiTQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o2-20020a170902d4c200b001b9e82a6beesi2297764plg.548.2023.07.18.15.01.59; Tue, 18 Jul 2023 15:02:11 -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 S230071AbjGRVbm (ORCPT + 99 others); Tue, 18 Jul 2023 17:31:42 -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 ); 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 ) id 1qLsHr-0001LF-2C; Tue, 18 Jul 2023 21:31:15 +0000 Date: Tue, 18 Jul 2023 22:31:07 +0100 From: Daniel Golle To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Florian Fainelli , Greg Ungerer , =?iso-8859-1?Q?Bj=F8rn?= Mork , 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: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Lorenzo Bianconi This is a preliminary patch to add MT7988 SoC support since it runs 3 macs instead of 2. Signed-off-by: Lorenzo Bianconi Signed-off-by: Daniel Golle --- 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 -- 2.41.0