Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp439649rwo; Fri, 21 Jul 2023 14:36:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlG8+N/Se1E48UtmqhDIZHGShqE4jkAn6bMXzKMIPG2LvO7qDZLD22Y0jlJQ5AioJtxZ75QN X-Received: by 2002:a05:6e02:1989:b0:33a:a6de:65be with SMTP id g9-20020a056e02198900b0033aa6de65bemr1265844ilf.21.1689975364586; Fri, 21 Jul 2023 14:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689975364; cv=none; d=google.com; s=arc-20160816; b=lXmm09Zsw0NDwWOh0pouhrXi15LJB4RIih4Bvhr4T9/heHaS7A3sxDEv7HQyRUZuci GUFRD28DleI1VqiF7aaLSN3hgqoyAj7UA3lxdJm4HaU1jXxwe6+pWGWPgvtTNsmuysvT SbXAwlVv7Akp99ojl7pwRwu4niUIKgDX5mDW1sBmdgePY/6WR3KXZB/OOfcuV2eXXcCT NMbNtMXxku79gYMyycPtcezat7bIPnIRYVkf9CTJ9aho7xV+wK6u4JR7VtnHxc913oco Z7/feJGYdxO389Yy8P1Is1G7krV8pw0hYTEx5Z8y+UpmRyP2DSdvlkINPN1Noj5w0KBF xlJg== 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=kSbt13auWz6/f7g9BzzANFH9WDsh0lXoSikr6/LoHRg=; b=UPy8TZAgV0E7/hJY+nyWquk2tyQYr3u/yc5VNE/gxk2OcfsnFJt/BoPi+5KxuO+A6O ZqX17iG4p+mD+rCNPvKhdMNKXR1kwo878t+dDWzexqeFVtYd7dUxyq6KFG4tBPqWyiAr iHUQT6mZ6ZorvCYYfi4lxKh+n6GmnFGeTguntg/xLj38HYVDW/hBozsRAsE/T8Nnmhxe tN2bEVUXIJRduuzshjwAVDLO8MR14JhNWA/zJJuz6wpiV3l6f0c/xm3PqZqAgFHlypxw goPcn7HRhwxniEMUlyvr+Ez7lLTFsG9kqXpLCKr1bySM+ltxQzxSFqXPnsbSC8KhNZ1c sYGg== 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 z189-20020a6365c6000000b0055c0477e26dsi3811433pgb.475.2023.07.21.14.35.51; Fri, 21 Jul 2023 14:36:04 -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 S230037AbjGUVdR (ORCPT + 99 others); Fri, 21 Jul 2023 17:33:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjGUVdP (ORCPT ); Fri, 21 Jul 2023 17:33:15 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29F293A8C; Fri, 21 Jul 2023 14:33:09 -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 1qMxkA-0004aa-2n; Fri, 21 Jul 2023 21:32:58 +0000 Date: Fri, 21 Jul 2023 22:32:50 +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 , =?iso-8859-1?Q?Bj=F8rn?= Mork , Greg Ungerer , Florian Fainelli , 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 v4 4/9] net: ethernet: mtk_eth_soc: increase MAX_DEVS to 3 Message-ID: <17eb135f119f52550612feff2a65d64072eea411.1689974536.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,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