Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5590582pxb; Tue, 16 Feb 2021 02:26:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8yxRrzmFOz5xFcvBqw6fh6K9yeENoc7vGEt5jCa+fzYWAvmB9fNdxKC65NvzlZqIYD9Bw X-Received: by 2002:a17:906:7ca:: with SMTP id m10mr19229883ejc.257.1613471205977; Tue, 16 Feb 2021 02:26:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613471205; cv=none; d=google.com; s=arc-20160816; b=dr/6OS82cceAdMVmty9sjepfFZRX9ssB924SBAhiNky2GgKby5gAV3f7XntvNrOQl7 qYzajBO3R6LhvOnWKh5a7D7zOD7Hw92sYXYrQqBesuMscdgbkbO/6zu4w5qjnSwj92JE 0oW5Mrg3exVoOHcVRiRwhGEX7zCagFbsT4V7oYY5B0lJm7AjpVD1VrkmFgvELabR73XO mHlC9+PivnCkTWjhqeVAQM7l5fX++ZiwSO1utBU2YwnHkmtWWtEKSljW+S7O7waXNcbG goSuy6s2FHl/ndO2TkSqlQI7AAYv97FATk80wEh/ctk0LGLhAUFQ3tlO8WenaXFFw30k y8Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=jXP/A7m1+bRyusmpL52wb3C/gRf4Bo6Hw3U3UA3/J00=; b=eKx6Hc8E/Xl0Gk39swAgAFFPVf9Tq8uaGQXSvrmbY/LWPgCLKe8h6RxQ3aQsaQwYsr 7yT650fvYsrsL1SLqrmsCK8n/s29tjERDo1zrD75bSWOWYTN6qIkunZ76atErwHZtLx6 RIsGIpkJ2PIhDCsRcLb2UdvGoBFsldRh+eXwBDOB4bSJXJb3+i8SpFKs7KN5HGWjpWAB T/fpcRJycZbL7Yz3fAvrLuBUr/MqOtbmujtf2cNqQMS16wMB1x+W4IzFy4lwj1vTaJbG gzfwCT11OvrCsVhNVq9ZRp7X4PIUW1LKPSHUbEMKoN2BQ8f2z5YcNOFsZBJRT9MUp6x5 Ynxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="GedDc0/S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si13654230edi.542.2021.02.16.02.26.22; Tue, 16 Feb 2021 02:26:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="GedDc0/S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229790AbhBPKZr (ORCPT + 99 others); Tue, 16 Feb 2021 05:25:47 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:52852 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbhBPKZl (ORCPT ); Tue, 16 Feb 2021 05:25:41 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11GAOeRs127257; Tue, 16 Feb 2021 04:24:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613471080; bh=jXP/A7m1+bRyusmpL52wb3C/gRf4Bo6Hw3U3UA3/J00=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=GedDc0/SqmIZkDbq5PAfBWDTHHn4XOOKFbSDL9C+GnB+tFeuMKrjlaYUapRHsiZiQ hYzFmU6ZeNuEBK3OjHPJ0Hjxz68Im473WdNpa7PKmX289A6NnLKtMcI6b3u7wA4aXy CH52r8WUMom0okKamv0eH+FZAvzGKF+34GfLecAY= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11GAOeDY090324 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 16 Feb 2021 04:24:40 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 16 Feb 2021 04:24:40 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 16 Feb 2021 04:24:40 -0600 Received: from [10.250.234.229] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 11GAOZ58004811; Tue, 16 Feb 2021 04:24:36 -0600 Subject: Re: [PATCH v14 2/4] phy: Add media type and speed serdes configuration interfaces To: Steen Hegelund , Andrew Lunn CC: Vinod Koul , Alexandre Belloni , Lars Povlsen , Bjarni Jonasson , Microchip UNG Driver List , , References: <20210210085255.2006824-1-steen.hegelund@microchip.com> <20210210085255.2006824-3-steen.hegelund@microchip.com> <04d91f6b-775a-8389-b813-31f7b4a778cb@ti.com> <704b850f-9345-2e36-e84b-b332fed22270@ti.com> From: Kishon Vijay Abraham I Message-ID: Date: Tue, 16 Feb 2021 15:54:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 16/02/21 2:07 pm, Steen Hegelund wrote: > Hi Andrew and Kishon, > > On Mon, 2021-02-15 at 15:07 +0100, Andrew Lunn wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you >> know the content is safe >> >> On Mon, Feb 15, 2021 at 05:25:10PM +0530, Kishon Vijay Abraham I >> wrote: >>> Okay. Is it going to be some sort of manual negotiation where the >>> Ethernet controller invokes set_speed with different speeds? Or the >>> Ethernet controller will get the speed using some out of band >>> mechanism >>> and invokes set_speed once with the actual speed? >> >> Hi Kishon >> >> There are a few different mechanism possible. >> >> The SFP has an EEPROM which contains lots of parameters. One is the >> maximum baud rate the module supports. PHYLINK will combine this >> information with the MAC capabilities to determine the default speed. >> >> The users can select the mode the MAC works in, e.g. 1000BaseX vs >> 2500BaseX, via ethtool -s. Different modes needs different speeds. >> >> Some copper PHYs will change there host side interface baud rate when >> the media side interface changes mode. 10GBASE-X for 10G copper, >> 5GBase-X for 5G COPPER, 2500Base-X for 2.5G copper, and SGMII for >> old school 10/100/1G Ethernet. >> >> Mainline Linux has no support for it, but some 'vendor crap' will do >> a >> manual negotiation, simply trying different speeds and see if the >> SERDES establishes link. There is nothing standardised for this, as >> far as i know. >> >>     Andrew > > Yes, in case I mention the only way to ensure communication is human > intervention to set the speed to the highest common denominator. Okay.. is it the same case for set_media as well? Thanks Kishon