Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2294376rwo; Sun, 23 Jul 2023 11:50:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlGmCbQ0TpMfHSAaNJR6x762QbUUMnfqrOOnQM/TFet9Q7Kw02ShAE0kSg0xwYBFR0ceOQw4 X-Received: by 2002:a17:907:7890:b0:993:d53b:9805 with SMTP id ku16-20020a170907789000b00993d53b9805mr8414860ejc.11.1690138205054; Sun, 23 Jul 2023 11:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690138205; cv=none; d=google.com; s=arc-20160816; b=BoPpok9lHJeB4n4pCtVGeRRjIQwXq20JiI19P3g7DJC5wBcQ8G8G+YnKTZFYVl4dia V1IQRkSuRcznmaBTSGQob3M0z8KLAZ8O+1NUz6zFAjryc5tclrOhhEggepnqeowgQMJx fKon0CZyuI8UxTnoziYy2S91+CA/7WzBaPfuyDNbumf7OZw/cHUjs1r4V73aqY6xWGD3 vLJivDCzT35HlpgGWGVgW2BzFedMhGF9wRE8LtbeJ5Us/AdLtB9reJNZp+OdudZShR1d UdomuZmHH7uNdJ0PydI8+6SOfnAdkARVBuQtLO+N8/4DGnmEwFOfbTtOHJ0C5ljQFGt1 FGDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8FgbEWjZHjQX/FQK4qsh6TOpU6UQn7jc6R+LidU6KFI=; fh=UEVvRAFK6gmZxZNnJDUC7AmNk/iU78fiWA23OmiDi44=; b=A7rDgDpuLd+qRZ8tu+MWSm6wSFNwgm/LvIZvyNOkLeyvfdzr2+URtIrdThvlMQ5Sju +vAG+d3uWecr1MXdfP1NkOIDShIT98f4cUD0Rqm1K+3i+Dv6WJH0Ng2ezQ9HYj+N7h4C OrXduFROrmolmO/Et9wP1GvyCZx85qJSC8EQdPd3POnbB6eS7rrU1u4THV5JgPgqSZLH lTuPIOajLASUCDOfpKFSTZMDZhdNewK7TNK4O70Yk52XNJybG/V4sAdbALpY0jISSLR6 s1RFNGbo33hRxl3ewevbijufqYDJbN4BQYPXB36i+sOw0u6aOGDeX0XTMkn57q2dnImv F0oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K8bpSYVX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a170906394c00b009931f24e340si5577889eje.612.2023.07.23.11.49.40; Sun, 23 Jul 2023 11:50:05 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K8bpSYVX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229891AbjGWQWZ (ORCPT + 99 others); Sun, 23 Jul 2023 12:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229973AbjGWQWU (ORCPT ); Sun, 23 Jul 2023 12:22:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8048E7C; Sun, 23 Jul 2023 09:22:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D96C60DFC; Sun, 23 Jul 2023 16:22:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81AE9C433C8; Sun, 23 Jul 2023 16:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690129336; bh=+ysItbKZr2r8wDthNuZTqSVce0mf6PlXK4jyZ+ackfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K8bpSYVX9RUYYhbQaQqgpUmPVLnuD1/g19mdl573T6CZcPKyqBBBBeKKBpn2vH8RV c/nXfG+3ag9VK1FeXznOirepvtWS0r5vtzDQ3QwmhuhGL3mwXa/TIMb9gB/VZz4/7k WYOeFc7KTyiY8+aivYsF37WuKlQnsS2W1JTd2Xn9+pvAhsIVT0hsUTK9ILG+geuQ2t h4u1Dpod4CWczqZhCrjMKl6udaF6Ewa3L81UjWRdfHd3y4sw9mB4DweGRDgSL8w0up dBvG+uBWel61arpomk8HKW5bLnFozmEGG3W6nDlDwNP2u8CtUn2GihZcGC0lUjjeUK l82PKeVU22yhg== From: Jisheng Zhang To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 03/10] net: stmmac: mdio: enlarge the max XGMAC C22 ADDR to 31 Date: Mon, 24 Jul 2023 00:10:22 +0800 Message-Id: <20230723161029.1345-4-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230723161029.1345-1-jszhang@kernel.org> References: <20230723161029.1345-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 The IP can support up to 31 xgmac c22 addresses now. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index 3db1cb0fd160..e6d8e34fafef 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -40,7 +40,7 @@ #define MII_XGMAC_WRITE (1 << MII_XGMAC_CMD_SHIFT) #define MII_XGMAC_READ (3 << MII_XGMAC_CMD_SHIFT) #define MII_XGMAC_BUSY BIT(22) -#define MII_XGMAC_MAX_C22ADDR 3 +#define MII_XGMAC_MAX_C22ADDR 31 #define MII_XGMAC_C22P_MASK GENMASK(MII_XGMAC_MAX_C22ADDR, 0) #define MII_XGMAC_PA_SHIFT 16 #define MII_XGMAC_DA_SHIFT 21 -- 2.40.1