Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5510503ybi; Tue, 30 Jul 2019 22:28:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyORPv3BluFMh9CZBFQKBaBr9nVQEk1wmtAX4xhrHuZqXIdScZ1dA1+ayb/Ddw2TaTdsZOT X-Received: by 2002:a63:e610:: with SMTP id g16mr109311149pgh.392.1564550890094; Tue, 30 Jul 2019 22:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564550890; cv=none; d=google.com; s=arc-20160816; b=kgJYnaooRCfBK1Ux/CHeyexatBUMGAHkLqieFet/ALHKyvxsAsZ0k0K8qfYI/gXovw 4/tXZPWNFqzFR2vtgrY2tgnMhHEo6aFM/iFp0plMp7NLg4RXGWKFFjXHMWcpakaWCYpi RaKPWddJ+MJF959oHG4+WaBnMcssCznuAA1IZGSgJiBEBLZhGUymdjpzqHGrL0T9fOWg 4ZieyrfppK+gZL1ZfWV4cxzKBbuzUBV8dXEs7aZkdF7Tqn6Sck39VoAooy4YZyHpLi3t 0Vs7HidjqXoaU/2ZDeEZB2DPeeRLt95zS3JEK3vUbb4bn6E3r2zs2b4gz9JP1UqbZHXS A05w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MbVNcIqleGWDajEIzwbSrkr9UJ2vlKBIQWs7BCgs3Qk=; b=S5XUQRR/zEL+D/epo70+X3YbORozgRUbU9OHCxMGiTyz735NmaCd3InEUw5YeCYPf0 IRY5PdDkXNypUkKyUVUS+rxbb8LgGqlKGuysZz4DFeiBRFPNrdT1cOCEeslnoLc4UFdO kDRoNneYOLu9x6JxFW+kFMD6nmDWWhH8F2JUB7nUEFGOIomLY26Yp8eFTg2XF+GO96z3 MbErq73uHKp2xU9u4lssZaWiTXIwsSGgIV76ml6iuI6dVnbIBK4BHZ4evuxAQNbsETxV yhcq5n99thSDEo+WL7H2RGuYVsQ6wMePdA5K4Q7XMhdddn2pafsT/On1St6XMwStvuK7 J3kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=uKiCIlvC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si33271290pll.40.2019.07.30.22.27.54; Tue, 30 Jul 2019 22:28:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=uKiCIlvC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726571AbfGaBgr (ORCPT + 99 others); Tue, 30 Jul 2019 21:36:47 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:49258 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbfGaBgr (ORCPT ); Tue, 30 Jul 2019 21:36:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MbVNcIqleGWDajEIzwbSrkr9UJ2vlKBIQWs7BCgs3Qk=; b=uKiCIlvCjadlgle851de+bSidr L+ClxfKg5jnk5yCPW2X8DH+7FvSUHNPBsCxjts2ILx7hHkhovl3GiFk58BHdK1l1oJ5cuFmLEZfQg JX3N8fTjHfLsWIp1rnCUuB5PKECKrVr+zPJMigo2OjJ40dP2TVA+g7EHsXk5BY80CT24=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hsdXg-0003Cz-DV; Wed, 31 Jul 2019 03:36:36 +0200 Date: Wed, 31 Jul 2019 03:36:36 +0200 From: Andrew Lunn To: Tao Ren Cc: Vladimir Oltean , Florian Fainelli , Heiner Kallweit , "David S . Miller" , Arun Parameswaran , Justin Chen , netdev , lkml , Andrew Jeffery , "openbmc@lists.ozlabs.org" Subject: Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S Message-ID: <20190731013636.GC25700@lunn.ch> References: <20190730002549.86824-1-taoren@fb.com> <3987251b-9679-dfbe-6e15-f991c2893bac@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The INTF_SEL pins report correct mode (RGMII-Fiber) on my machine, > but there are 2 "sub-modes" (1000Base-X and 100Base-FX) and I > couldn't find a proper/safe way to auto-detect which "sub-mode" is > active. The datasheet just describes instructions to enable a > specific mode, but it doesn't say 1000Base-X/100Base-FX mode will be > auto-selected. And that's why I came up with the patch to specify > 1000Base-X mode. Fibre does not perform any sort of auto-negotiation. I assume you have an SFP connected? When using PHYLINK, the sfp driver will get the supported baud rate from SFP EEPROM to determine what speed could be used. However, there is currently no mainline support for having a chain MAC-PHY-SFP. For that you need Russells out of tree patches. Andrew