Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7417964pxb; Thu, 18 Feb 2021 09:31:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrGWutbrmoDzQ8zj2yC6gbM5erC8CZSmACgqjpoMdyhV4jcTl8RPrNP9ie2Yok80iJMSN5 X-Received: by 2002:a17:907:2d10:: with SMTP id gs16mr5082714ejc.0.1613669516839; Thu, 18 Feb 2021 09:31:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613669516; cv=none; d=google.com; s=arc-20160816; b=nkpd+MWEQWNfU6ybUljY/tdopXkoD25KgRRVpQm2k4tLPRHrlLaLrse+D7ZrbLtDTg IlAl5ZKxnxqEnXE3Sn8yvp5tI8xWMfiaRnCWuOaNcEv5IUrCuxq2Nb0WgpEpTDzrdx3/ 4XFrXztXStb/noYL/UpiJ48Vr4ZCk2CGsbuP18mQFfqIVrljGZHzJkSkq4vaxvRjmSGo ZzU4e1O2iyomHK2saMJVt8xggfNs2hxlkVQOKQT8jMaIKJa7VH8IbTY06HgGVewlj1GQ 34J7IabBxPdCGPnsQjCZS1FYkoG+F/B/fD102kFHTdX9wXzwmpxpM2xgF5EUS70JMmMx 7Ibg== 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=KN2BtNN4ezrw+Wg1gLvKyH+5g8sAsvCmi14+dfgnu2s=; b=pHoX2+McvQ8hPfCVUZg+f0pbiii83cLqR7RZ6f1I/nvdw17+1MQuJVV3vzSXzD40qS 8qMC7Lcdd3J6M3HELj+fOXI2zCseeb+O1fXotFY7I7fiIFO84Dn0ikcgntIVAxMPvN9Q NofrlBhIvgRyc+ZSYmsGddyJ8McDnSL/rahlOz1jofNbMVjARQNQrijRWciaIZ1lVKsp AS8N7HNR5SuJu8dBtJUO5PIVI5WBvl32/8mDUZavolN6rg1x5JlpSacgVPdh8rKKmWh6 u76mj+UTjUMOWLVi/ujK6FV0dThyTftxu816ICinL0W/lU8heyBQRbyYBWlSRIVHn1LD acxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=rXkelD3h; 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 le17si1970636ejb.610.2021.02.18.09.31.29; Thu, 18 Feb 2021 09:31:56 -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=rXkelD3h; 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 S234343AbhBRRa1 (ORCPT + 99 others); Thu, 18 Feb 2021 12:30:27 -0500 Received: from esa.microchip.iphmx.com ([68.232.153.233]:26610 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230314AbhBROq7 (ORCPT ); Thu, 18 Feb 2021 09:46:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1613659618; x=1645195618; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=dyXayGWuX+Kuke5GEv4XoGnhgT27caNB9nxMLMsNigc=; b=rXkelD3hbRU57XQjv8wB1DwbQgL9c0LYk58v+NjV56kEjCD03EdzaH1o B8Timc3yr/lHLFfd31tUNuYgK24T+xLB9Bs9W4fixV6T2fmS4W7mjnYVA X8L3DnrjsgYUgqNEIKNlqLlrNPN5lFmM1ZQvyWsyBIShpJbX8/1hWO94s ZW1U+rqxrmdSoICR3TehXK8jKdtlKQytDym1u6Hy+6DRq2y69jrMWWgCn 2Y5JDqOJInl5jK6K7z3IiI56QYRqvADGEEg3Z6gAoQZJSofg6zzxDs7cf WjkJ1wOuk0kkMWlpbHuNaQw2Srsx/tiTjzwWGjyrh8ZjhthMojpsrY5vb Q==; IronPort-SDR: 0G+IookcOZZ6GuoMFIZiJro017YKfvoo7IPmrCY3Y3QoVUoWHqcXGwaKiCVE0xhTWojL787q/q f/toLH0x8pOM44IlYaFvUV8PS41kWNMYkp6IyRwUpHWUbyisdZItMsVkiEL3sjqqMpQehh0rYT Fnc9Q26MAeFyMA6fkTJq+5H8l8uGmWRq5TnkVr5bpUmE09CuqXAy71d80n082M1EkvaafRvTuz X8N4hjQf2K72b/QOpOjuTur7sOYGFD6dpJsTAToybkuyx9AZKx+t1+4wc9CTDGLQOwdYDX+osH pNQ= X-IronPort-AV: E=Sophos;i="5.81,187,1610434800"; d="scan'208";a="109758822" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Feb 2021 07:45:32 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 18 Feb 2021 07:45:30 -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; Thu, 18 Feb 2021 07:45:28 -0700 Message-ID: <5abbe42602ad92bd4bb0b36b64b8621dee805103.camel@microchip.com> Subject: Re: [PATCH v14 2/4] phy: Add media type and speed serdes configuration interfaces From: Steen Hegelund To: Kishon Vijay Abraham I , Andrew Lunn CC: Vinod Koul , Alexandre Belloni , Lars Povlsen , Bjarni Jonasson , Microchip UNG Driver List , , Date: Thu, 18 Feb 2021 15:45:27 +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 Kishon, On Tue, 2021-02-16 at 15:54 +0530, Kishon Vijay Abraham I wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > 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? Yes, but in the media type case, we should be able to get the type from the DAC cable EPPROM information as mentioned by Andrew, so human intervention should not be needed. > > Thanks > Kishon Thanks for your comments. -- BR Steen -=-=-=-=-=-=-=-=-=-=-=-=-=-= steen.hegelund@microchip.com