Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp567887rwn; Thu, 15 Sep 2022 03:15:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+/VVl+R/CGOmxdVARTbVf4SQxk4t0z+2klHSGvF2Aq4dGkFnD7hpE+O7rvj3dtlfCr7oF X-Received: by 2002:a17:907:1b22:b0:741:8809:b4e6 with SMTP id mp34-20020a1709071b2200b007418809b4e6mr28763432ejc.84.1663236922774; Thu, 15 Sep 2022 03:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663236922; cv=none; d=google.com; s=arc-20160816; b=ThoNNVKWJ1QTJ+hcRZd53k88mOL0zVASzsr53RDV+VE1AUE1lSnFtoGPh0i3p9NK/z cjoAIceJRph78avFUcQacOzvFzWeGeVplo8C8994T8m6I64iiHewsqXjVNBeOVvnZnp6 RdzGU+SSZ/L5Ej1jxbsw2HyekJQBmyrLPpNKNb2i0KgIlNauSoTzRey8QNVrmVI6VemX 9hZXPCU0pZEMNNaDz4nskVTGL5XcD5tWZWJy3O0y9i/NJo3ud118Moa742PQ+TFpnLE/ 8a4hNJhFZZvDz18W3h30f9jIntvcEXPW5MhLqBQpfHjCPHSVQQvasaANToLvUoX56N8W STtw== 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:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=9aFTZ8l8M7d4xqHqpevjI9HHFDEIb1JlWEjXqpc9pcE=; b=gQAd7a5ubeXX7+1ri5SUu2NaW54xCUbSIiDXZ34l16XO9I16NEIDi/fchzTm5UPdPt 2FOTIHwKDu66Ayk5sCVQtHuqHtXSe0C2bWwb2v2TlZEzp0ojEMNUvR69ywXUJuNs+k3q 8Hs5dI4xPVo2w8KdpycuKCTA/KK7y1ezBBCB/xPmqERBiTlu20KBBZny7L8eXwnDISt/ NDWdoZvR6RpZFzrb6u4GqOvlOTvV8MKIcsXPJuA4YcAzjvFs5YHT4BWZbWZd1LDxZKAA nU/DoqAR2rCGI8M/lzzbdlji+g1KV9bdNfnxTcLJHd33Iwpm6WGnMf6VPT/Qm9hHpylt 0+Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="ij/7a3Ae"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh31-20020a1709076e9f00b007800b1f8d98si5686622ejc.452.2022.09.15.03.14.56; Thu, 15 Sep 2022 03:15:22 -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=@ti.com header.s=ti-com-17Q1 header.b="ij/7a3Ae"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbiIOJlC (ORCPT + 99 others); Thu, 15 Sep 2022 05:41:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiIOJlA (ORCPT ); Thu, 15 Sep 2022 05:41:00 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A3C383F32; Thu, 15 Sep 2022 02:40:59 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 28F9eVKj034547; Thu, 15 Sep 2022 04:40:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1663234831; bh=9aFTZ8l8M7d4xqHqpevjI9HHFDEIb1JlWEjXqpc9pcE=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=ij/7a3AeR0VS55Ui1SQ7yxTIPeJJDLPdo5X0wKZHaykFRpeYjvsbbXx0sGzmZn1cZ OXgaqkC05ZnKQMtfJ9CHnJMv8xxypmZ3wEy5IeO4FaEZdHMY6E7WS0LEf2ag/mhZFc ia8av3u/66c4Lw+hcLsUlzvreN8UTCw8lllmBTrs= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 28F9eV4M009231 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Sep 2022 04:40:31 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Thu, 15 Sep 2022 04:40:31 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Thu, 15 Sep 2022 04:40:31 -0500 Received: from [10.24.69.241] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 28F9eQPZ011593; Thu, 15 Sep 2022 04:40:26 -0500 Message-ID: <70bade48-278e-2df7-48a9-bd7780cdd025@ti.com> Date: Thu, 15 Sep 2022 15:10:25 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 CC: , , , , , , , , , , , , , , , , Subject: Re: [PATCH 6/8] net: ethernet: ti: am65-cpsw: Add support for SGMII mode for J7200 CPSW5G Content-Language: en-US To: "Russell King (Oracle)" References: <20220914095053.189851-1-s-vadapalli@ti.com> <20220914095053.189851-7-s-vadapalli@ti.com> From: Siddharth Vadapalli In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hello Russell, On 14/09/22 21:34, Russell King (Oracle) wrote: > On Wed, Sep 14, 2022 at 03:20:51PM +0530, Siddharth Vadapalli wrote: >> +#define MAC2MAC_MR_ADV_ABILITY_BASE (BIT(15) | BIT(0)) >> +#define MAC2MAC_MR_ADV_ABILITY_FULLDUPLEX BIT(12) >> +#define MAC2MAC_MR_ADV_ABILITY_1G BIT(11) >> +#define MAC2MAC_MR_ADV_ABILITY_100M BIT(10) >> +#define MAC2PHY_MR_ADV_ABILITY BIT(0) > > In addition to my other comments, this looks like a reimplementation of > the LPA_SGMII* constants found in include/uapi/linux/mii.h I was not aware of this. Thank you for letting me know. I will use the existing constants in the v2 series. Regards, Siddharth.