From patchwork Fri Jul 21 21:32:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 124121 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp477954vqg; Fri, 21 Jul 2023 14:36:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlExf2e2CUxSSsTElTSNt6FF6rd5Yu2XNMafGwpPoR+c3OdszRn2bvnPG2hbhGf4fTMf9nZ9 X-Received: by 2002:a05:6358:2919:b0:132:962d:b5c5 with SMTP id y25-20020a056358291900b00132962db5c5mr1202695rwb.30.1689975363246; Fri, 21 Jul 2023 14:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689975363; cv=none; d=google.com; s=arc-20160816; b=e4OtnDzc5TAIcfdqGhbP/FxaQJpU9JGlaD2b5FI+1KfNIGd/lXdzLnLcvrAJE70mJh HMQGnDV5KB5shi+ZaMDWY0rcfRMsvO/ISnzRYCDdJ6iJuh/wl9KGTU52CNRcTPKpGv22 LyeYxmX5qWK34u2bMTUjaAyPYNIYK1/IVJOhuMmSRi8CbqI+fkatyEtJ6W6FplmBRYjM Mi5ZbS2njDrOqQPV3GXk5BhCuAXONtFmo6wRl3Cj83uiJGLFhF89HXvx/wwKUuUaPVBd EhZz6RYPBKkZauh4IFg/joA/GUwO83U6YPJgvcz8az0VGIHXFumUun/YId2ZYuuwsVum JkPA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w29-20020a637b1d000000b00557899ed8b4si3760616pgc.156.2023.07.21.14.35.49; Fri, 21 Jul 2023 14:36:03 -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 S230048AbjGUVdR (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-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: 1772067606482880429 X-GMAIL-MSGID: 1772067606482880429 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