Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3335508rwb; Mon, 7 Aug 2023 11:46:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXxwt8kFHFBQo8X66N6Uha6HfFUQGjGcPgsOd1rFGawhU07RtCdQXSwWhjpH8iwZRC5aza X-Received: by 2002:a05:6a00:1595:b0:687:8d09:43ad with SMTP id u21-20020a056a00159500b006878d0943admr10061214pfk.28.1691433981726; Mon, 07 Aug 2023 11:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691433981; cv=none; d=google.com; s=arc-20160816; b=F/Fj7gqTwHpBxsodIRGNJhz3Xkny3W4O92M4t9OFKEgN2iDDG69YOZA2vi1jRjYvNg HYixLXlHx/QLMeaZ2koN9JdV2I1fYSENBCoLt5tm25vlKvIesMvZvD1MveMF4hPmhDBJ cutVrercKS3VUJb9ItmqZ5g8Cu9qPrE8kuV+HbdbijlxsXwrbUyywHIjtSqBOstGo5+G Ey9737+Ogu7bjpWM6NHtsZ3WozoO+PEAUcqLghvAYGJKbZvyYWg06qfv2qLuVfKX3NSC nUS0lgrpuzko0t3/+Q6yIhZaEGkM+abF055JUWPdeb4pU7g9le0j4shqVuIhPcjvPS3y y76Q== 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=LHGZiTMPFUL3fRwA96WOaXp7kGGXLHIYKUO++mhMFTyG2GB2phcvbO6V5uMsju0Tmh ugaI8YisC9mOVySd9S52EZQUbP2kbHDI26BL0boqAXhmn9HUz68VapVrOTVySA+ap6Gh 623YlJF7SH0rGo76Dr/umdbAfoLzjGlvyzuSbv67jdlyTktkA8V07LHtyD/Eey8M2ktI tQjZHmsO1iHHA0n7yuUNscUufB88MgWuTViWxsWKIyYEpZN/Nxvk8N87uQ2tCfFuKCnn vljmtw3e7zr+UN9M/NVGfDRVQwPGIgHJs8kH63fqRmCJsZMdqckRerD0LAmlEgHRczyi rasQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pD/GESV9"; 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 x22-20020a634856000000b005649989e2d7si3552644pgk.431.2023.08.07.11.46.09; Mon, 07 Aug 2023 11:46: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pD/GESV9"; 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 S231987AbjHGQyI (ORCPT + 99 others); Mon, 7 Aug 2023 12:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbjHGQyD (ORCPT ); Mon, 7 Aug 2023 12:54:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E99871BF1; Mon, 7 Aug 2023 09:53:46 -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 4AE4D61FB6; Mon, 7 Aug 2023 16:53:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BC3EC433C7; Mon, 7 Aug 2023 16:53:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691427225; bh=+ysItbKZr2r8wDthNuZTqSVce0mf6PlXK4jyZ+ackfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pD/GESV9u1ND3tm6fooBuREoGXbeHEzVYHi7y3DzZfMsa30qWzj5q3tcCUKNBrWNG bZtKHI5p0RlGT1Fz6S77N3qfImtCHn5l0FeJBhSYO63S7j1agc+Ra/9H72E0FvMb5O p7cHD+ydgCQd0XMkaPipQJDvKdABQVLX8Hk3QAd8jnROdc5l0gelLw+IIBAxXnANfu vpZKP/7GhWH7HF4qfEZiNE9BdHo6+hU/JIkPTqLzK+xU2XlZnTTOK0b1leiObDXNww le30EHa0FvrSfu5qJsKnrTZ+7iv2CimlFCfeoGqrsVrDR7wNhni8oRIhojP1C1KeBP 5VLzfYefuWytQ== 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 v2 03/10] net: stmmac: mdio: enlarge the max XGMAC C22 ADDR to 31 Date: Tue, 8 Aug 2023 00:41:44 +0800 Message-Id: <20230807164151.1130-4-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230807164151.1130-1-jszhang@kernel.org> References: <20230807164151.1130-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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