Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1275761rwl; Thu, 10 Aug 2023 08:51:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmCDbDB1vyE1CclpY1EF2xLOZbzN5DzDBZosHRfLDI8o5hv7DPlkCqr0Ja6nTe405cBRBG X-Received: by 2002:a05:6a20:969a:b0:138:60e:9c4 with SMTP id hp26-20020a056a20969a00b00138060e09c4mr2604020pzc.23.1691682678951; Thu, 10 Aug 2023 08:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691682678; cv=none; d=google.com; s=arc-20160816; b=g82tGz5PGLhqtFOF+ZpLP0DeYgzdwVZUNk8h6PmHkN2QHbuw4afDY45ceid1LuAhwW BWjLfZ3p8u8/CvJP/peJLyG40XKeNQ1nYcuFIT9VyBiIf5qaYieRsSX2uar0/4b7djbN fYFAn9/D0WZHuNYrdoEJDCVdzn4Y5JeAsGzMmhFOQdYonn+2LH9soJ66I1OUUnCyPaeB WIdzqBWsTPBIDbwerKW+szfRvPFxR0A5fpu21ZMmICH8T5Egddzyw+DLEhdrc6PCf6pS H1IlzW659JDkX7B9Vh9P27FWg/M1IwFV7IuQgX7PkZUtuAzFNAuPxxC35gq18Ysl0FhT utpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HbT+tUHLMeYFY+/JIhpY3GrboVoERo5Z1ifpZ9cL6vE=; fh=uY1T7aoRwrgzhKLMykgttq5s/p+N87zA2GATJX0cskU=; b=hvP8G9LN5/p1S+EuI15SwJHkExfgsa11QSPJcQKZjD6MN+L35Z5jsPIljis+qYxZzP INaNXUWxMl6i348Y8VKsyPzGOOf/0W69heZSnDHay/OT+UWEOyORJM8GmElFnriveifn hFWEXbWu4976bgE5Fm1rqDwNpOCgCU7WUi1uKm8Ju/SqmahCB8P4BjRwEtGKn2MUzIQs VwT9pu3NdK9C4kDMZ3tFL3ozuQGCOTb4XcNX1kekcazFLsDN+KUpFLZroa8nIeOZbO7d vFzpep+rkGkFkNu5I1P84QsckYEYN6WD+Plc2QHciZ7nQU0bsJWqr7FER5GbbQOUf0Pb 45pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=RHO5fty8; 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=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l21-20020a656815000000b00563e747d75asi1803439pgt.734.2023.08.10.08.51.06; Thu, 10 Aug 2023 08:51:18 -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=@foss.st.com header.s=selector1 header.b=RHO5fty8; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234169AbjHJNql (ORCPT + 99 others); Thu, 10 Aug 2023 09:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232186AbjHJNqj (ORCPT ); Thu, 10 Aug 2023 09:46:39 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC37CE54; Thu, 10 Aug 2023 06:46:38 -0700 (PDT) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 37ABphRs008067; Thu, 10 Aug 2023 15:46:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=HbT+tUHLMeYFY+/JIhpY3GrboVoERo5Z1ifpZ9cL6vE=; b=RH O5fty8jncHHGv8wC1zIJAQ1wxJo0nTjqRF8P9VMF7V3+GS5MbP34E9u7EQH7YqyS v8ZUpxWKkRIKA4XemZjB5cXbamd3lAovMi5iLFdD6shomomKIuAE0Vq4bYKNbR5L 0pFagd3tZGfp/nyvh9zfE92q2kSdsbfLCyX0SR4kAqM+jcMPGRiVzYHTTDq55mlz ZcgCyX8UahpR1yzW6N6ZUlkewOULK4mXvcCXyQAtQWAqWCiaVCdl14OQpFyhzVWa u2o2bkxrsOwzrtdHqxBiwhrBdzQaEuLXcxdJMMH3+1j8iVL5LrWchqUEgucOqkTN 6j4hsE5c6cNP+FKE3F3Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3scdv7phy6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 15:46:19 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2AC4C100053; Thu, 10 Aug 2023 15:46:18 +0200 (CEST) Received: from Webmail-eu.st.com (eqndag1node4.st.com [10.75.129.133]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 22D1A21BF73; Thu, 10 Aug 2023 15:46:18 +0200 (CEST) Received: from [10.201.21.122] (10.201.21.122) by EQNDAG1NODE4.st.com (10.75.129.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 10 Aug 2023 15:46:17 +0200 Message-ID: <7308becc-cdc2-74da-9eda-4b7923cbf5d0@foss.st.com> Date: Thu, 10 Aug 2023 15:46:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next v3 03/10] net: stmmac: mdio: enlarge the max XGMAC C22 ADDR to 31 Content-Language: en-US To: Jisheng Zhang , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Jose Abreu CC: , , , , References: <20230809165007.1439-1-jszhang@kernel.org> <20230809165007.1439-4-jszhang@kernel.org> From: Alexandre TORGUE In-Reply-To: <20230809165007.1439-4-jszhang@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.21.122] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To EQNDAG1NODE4.st.com (10.75.129.133) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,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 On 8/9/23 18:50, Jisheng Zhang wrote: > 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 Acked-by: Alexandre TORGUE Regards Alex