Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp32739rwl; Wed, 9 Aug 2023 10:27:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEybLtSdR9uF/1MVsFiAO/Zucr7L1b+CjZ4SjTr6YR53s4TFttkMKa0HIXrzYRIa1l113LT X-Received: by 2002:a17:902:7793:b0:1b8:6cae:3570 with SMTP id o19-20020a170902779300b001b86cae3570mr3303468pll.11.1691602048675; Wed, 09 Aug 2023 10:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691602048; cv=none; d=google.com; s=arc-20160816; b=vJBrrIUM/FkaPu+ETdcCQTo/SE24QLaFiV5U8O+7H1Q8vVog4gDUUgI7/CH4XHBje+ iRgTv8h4YENjMlcMvN0dwdU+kq6cQrS6a7EuHxguzR4UOYnKI1MCkEsO0fpmtPAPf4NI XQ6EK/Hx8b8vnJdhLwx9JirqB49sn0wUu9Njbn2cBvCeXWwHA4AmMrjQLmZFMH1AMTnP OZzKxq2T/4Kq/f2fr/535cUN6SBMt0fUzNuZines4qrAXUfIUNDwjYWdnDD2DDkrRHoj 3nVmPtfOmJ1dOZ88+mLcrKa0uLjrAsyI56uYEksuUkQtV5fd8j5yLf0e2Bw1uIQblJ7F 44rQ== 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=c8ORShAhs2SJevtidDQolH41MJw/pUzgtAIwnXgiwL1HeH7ttsC+GGq/VG++GfLE+4 6uKDE6dd3TFnjqji+AgwrsbTXmRAmRQ4a8gAbmwStSix0ZA4RO5BqYM/6Z27LGnbSXV1 oP0+DKSqX3afXNuJrA6nodZHyemDXKOF11/BwzB9A7oROgZjx4YYz6N9b+lcbcE+nBo9 NtcsvplfAvV0nLk0jctYIL3b9qz+WqKAnHwkRnIXRsf8ssosB6418q8x98dQjtTEGfOw VxkMkcfOJMXgZ/1gerMtyBL2kl6U9Lr9qdlZtu7LtgNHQ2DUnpxKm4DslXayusxyHDPF X32g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kSJDgiKI; 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 o12-20020a170903210c00b001b81a9aa3d1si7092049ple.223.2023.08.09.10.27.16; Wed, 09 Aug 2023 10:27:28 -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=kSJDgiKI; 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 S232550AbjHIRCP (ORCPT + 99 others); Wed, 9 Aug 2023 13:02:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232483AbjHIRCA (ORCPT ); Wed, 9 Aug 2023 13:02:00 -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 057A72108; Wed, 9 Aug 2023 10:01:59 -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 90B23641C3; Wed, 9 Aug 2023 17:01:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A0FEC433CC; Wed, 9 Aug 2023 17:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691600518; bh=+ysItbKZr2r8wDthNuZTqSVce0mf6PlXK4jyZ+ackfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kSJDgiKIr3wPBI9HdtaTnJjlCWTAXshygqxPj3S4cr7PjCURUYZz7K36JFeM6xEbF BpNU3bNh4yLma8AZnAxYOcZIVAO5nCrGS6bClAVsN3pAxvWajVWYqGx+TM7xGap2HD gE5BiXnxCStgeDB8Y2W5b+rU/P1l+Cihl4G7ELjOHwLbKoj6vnz7FMPR881BMu4q/P 5bdMs3VtMu6/FgGwi/cbBVfQi0UsCpxkTD6dpNu32WACbGHmNy5EXNg2etgty/bcGa wg136JAgiBACQh4iGVfUoKyXEc6s4/3Y8YjMX740JZuKDSfUSHNVdL6THRnvSufpV9 2QkNB9+jdVL/w== 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 v3 03/10] net: stmmac: mdio: enlarge the max XGMAC C22 ADDR to 31 Date: Thu, 10 Aug 2023 00:50:00 +0800 Message-Id: <20230809165007.1439-4-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230809165007.1439-1-jszhang@kernel.org> References: <20230809165007.1439-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 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