Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5540636pxb; Tue, 16 Feb 2021 00:45:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRpYRlalp8W3iXuCE2CsLogRncbR06W2pbI7xZjB+P4TNlFVLF0O1LWRA8+6FWs9eonILo X-Received: by 2002:a05:6402:202d:: with SMTP id ay13mr19448102edb.335.1613465110307; Tue, 16 Feb 2021 00:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613465110; cv=none; d=google.com; s=arc-20160816; b=zbAKx+BsX1w+ZDDwqUaPdTii65/swDG6qxLbdqhNR2/ALJqW2Plsc+0ISejiZfM424 KIhRS4QxsnCe9rR2C0MPGf+hfjTIaUWjLgPwQfGwN50StOL4JVli0/XRzQfSR+UNtWwf B3PngUGGRamBS9Pmeqe1F9klpjELhm7P2Ro5FESzQ8NIkhmNUCoR84fm5gaE0+Z0XQBq 1TNFXXibZQpZjjjZX0uU0L5Zidxak+zE2jmhilsSqsgd84h6FgvuET9x9IFG5pmK67K4 egykIwLI2CwVkvtg4YMl2iiwsoofOow563cQppiU/W8T+82Hvnt14NrYc8pkqbBP1/H2 IGrQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:ironport-sdr:dkim-signature; bh=TjyRuDxeXkdyzKiBHvjzep7f5bCUdjRsXwMeP4G12Nw=; b=zdxSfjfgCcDSjsaIeLSsotS8ZSfEkAad8YBG3UdXIydQtfghSS4wUbErXbJ6eGEgfL t6bOlWbiHjLxTTzx2McC5bQ6tktG15YBTjEirYHLBdhKEM5RrktgFcUuooS8JwTmYcw0 5YThT1gSDtcQqu+RQdic9SrH4kmUn0ZbaB/XaQiGNHRcJjQUVQbLtpgvy6cYIWcp9w2F dwANkzA/xjhPmosKQvG2P2X2PK2uj1WZcToVmrD+Eu6AeMuv6/20aofmi9y8TA71J8lX s9tMeh8jbT86DcvCo6O1foFIvEY4LbSIh/+fRo4KYfrywAm29v+qS838iPP/zlbusmQM QWiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=vGjwDVf5; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si14212589ejd.158.2021.02.16.00.44.47; Tue, 16 Feb 2021 00:45:10 -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=fail header.i=@microchip.com header.s=mchp header.b=vGjwDVf5; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbhBPInJ (ORCPT + 99 others); Tue, 16 Feb 2021 03:43:09 -0500 Received: from esa.microchip.iphmx.com ([68.232.153.233]:43134 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbhBPIjP (ORCPT ); Tue, 16 Feb 2021 03:39:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1613464754; x=1645000754; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=Nq9yQxYqOwgVE/65sX+lXgjLa7zjX+KlCrzRlYHvhQs=; b=vGjwDVf5ZswNQj53LopgZf7VVuNK4TOiydcBOadih3KcrvquHAH9gufE 6n5d3iYiP2VpkYclZtmxu/E/8vQpyaVcaklBLfV70GmwwRDNP4afNHRxd OyXQGMl85yBmBOpmSjhufZh46h7CKqj91fW4aHlRuxRXfqjkir1zohAW5 gBvnrwDOXmVsPfzKQ3xLkMwhawguD3Jj8dpqu8EkW5tttqKHYGkZnhcm/ dJvtZOqTB7AustwMEK+XALMNuBF59AU8bdqyOG48qRS3babikOyQNd1z2 k41QtWN0B6i8S0/SdT2zQ2u85MCrLcXUgnQH9cw75TRzIMC27I0VeoFnJ g==; IronPort-SDR: Sy1A1/+uQtytlMN+4nwYKEvrFZK0Jaeu7b9LDMpseh76HQgCs56yX4xguv/ew7lZJE1jC6mui1 AzaFU56nbzHafne42RLxcSYhou8AW1eGbQ8Wd3DBzlGLyMaBw4OlLtEGRMSBZIqDvvMKj9h9YZ iMNxD3Q4coDBC734N4+UfvfEEROWN1A0F3rIdA6qLqKXPF/YHnHLX2oRX5rG8X9X0Pybz2UczT wbz7mytxUUshiWSE3LSk3n7AO58Tn26+NCxBBD4GjugxowlTWhvN2sUARRxHlC9y4iO+fNAS+R 5Do= X-IronPort-AV: E=Sophos;i="5.81,183,1610434800"; d="scan'208";a="115234890" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Feb 2021 01:37:59 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 16 Feb 2021 01:37:59 -0700 Received: from tyr.hegelund-hansen.dk (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Tue, 16 Feb 2021 01:37:57 -0700 Message-ID: Subject: Re: [PATCH v14 2/4] phy: Add media type and speed serdes configuration interfaces From: Steen Hegelund To: Andrew Lunn , Kishon Vijay Abraham I CC: Vinod Koul , Alexandre Belloni , Lars Povlsen , Bjarni Jonasson , Microchip UNG Driver List , , Date: Tue, 16 Feb 2021 09:37:56 +0100 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. BR Steen