From patchwork Sun Jul 23 21:58:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 124561 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1456191vqg; Sun, 23 Jul 2023 15:35:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzafNMJGONxk2DJntaTv9iME+DiQfSPVgeUcdaDLdrXve6rjpgrSVzUTDX0bikapIueg5X X-Received: by 2002:a05:6808:ecc:b0:3a4:24c5:ff14 with SMTP id q12-20020a0568080ecc00b003a424c5ff14mr9763956oiv.4.1690151721551; Sun, 23 Jul 2023 15:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690151721; cv=none; d=google.com; s=arc-20160816; b=et9Jk5ULA1jkrdcQNSaSacqUiMh26BnPEOkoZsVb9Z2fxgGyVwzkRu8p15FSNBTg5+ czBQNTs7j8lMQKaqstnFU2G1iiLB46iECK3iLGFPudelALjgtazC2+AAglWbVt5wtLml BprjNH/pY7obSBoUw5qPJWAlVlATzVT0nX+FA+oEOPGB8KoI9LBV6lAuhwhGIwtCYvIL 65U39iikryvui1YT5msnehIDGo0Apt4frHJMqSQGUD/HGqpVmKmejE4MNyG/0vxCgjxw pRW2XkC5EFl1z7rtfmbRgKrkIfwKyvCdAwZcs3xuBiS+KTKEyiCnoXaEWLMjxX/LpTdM 4/zA== 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=OTBxUoOG225wcav6H7IgQCdaSb9Jvw/DmX11mSGREc4=; fh=kSbt13auWz6/f7g9BzzANFH9WDsh0lXoSikr6/LoHRg=; b=V6jphB9r4GRX8H7MfcYycerSLyuqDnYZp17zoHRd0qLSToptKniGBoL0OnqI1r6Yy2 E1U9De/foBn95KMVtRZlhzFLspqf9KjgeJMohoeHrTK661GvS9JdKf5qMiUWYNZW6/n5 FXblFmsyJWm3i3gO4F5rsVT/w/cbtLfskMqrG2DxIpBX3h3RomjGMLyiTYC2ub4R1FrS Ej01aQtjL06DGLNNAWglkzCEp3TATZGSXHf1fmF+ldFKjP/OmuDDvTxNEWGhZGXejM0d PRZxmjwkenvPZ7yk4bUnQLb94uNlPRZyev+CR8g/SaD9kYAC9w1xkJOY5VmYXMBGNERU plVQ== 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 e70-20020a636949000000b0054fde1643cfsi7851170pgc.127.2023.07.23.15.35.07; Sun, 23 Jul 2023 15:35:21 -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 S230007AbjGWV7J (ORCPT + 99 others); Sun, 23 Jul 2023 17:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbjGWV7G (ORCPT ); Sun, 23 Jul 2023 17:59:06 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AFE5E7D; Sun, 23 Jul 2023 14:58:47 -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 1qNh66-0005RJ-19; Sun, 23 Jul 2023 21:58:38 +0000 Date: Sun, 23 Jul 2023 22:58:30 +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 v5 4/9] net: ethernet: mtk_eth_soc: increase MAX_DEVS to 3 Message-ID: References: MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772252532011456262 X-GMAIL-MSGID: 1772252532011456262 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 8ca368973e922..9623b909387a3 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h @@ -1043,8 +1043,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