Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3541968ybl; Mon, 27 Jan 2020 06:02:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzcZkEWX93hx4lp1JXTF56EiCmDaF/rOvcHKDBxpcAF7rIhXst9PHvCZSoMyQ62ohLfCFb2 X-Received: by 2002:a05:6808:658:: with SMTP id z24mr7724912oih.91.1580133753222; Mon, 27 Jan 2020 06:02:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580133753; cv=none; d=google.com; s=arc-20160816; b=Cu4oYHRESzgWX1NKOQYHdBuMtaRgh4C5k32AB+7hh34nfwBlgmZg5w8hO0/gMYXWmn L3uj3bqaT7ae0gtZm0ELUee/EEFIg/T93LN+1f64cMTOYNehwrLhYNkhQcwzm6AvEdfr 1r7MUE3LebCzQuWvD2rMks6vcaJxuBPWzYHCEJ9bdz2AIRUl7HQZMI7O+cdZdjM+0T/r Enki4Eio9nJRl5OqTa8x18m/gfqOtMCRlR9m1YpC9jVXUIfQWSueVADCwYBITa30pcBj L9d9Vy9X/8TyeebstrqZ/lbyWrs704PHmNyUzJuQyCcqgH/QJ+9ksVOfacXNrPRz37e7 o7Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=S0oCkFJi5GJ0pOrckJdOjtGxi2RubX2p/f+d/hw//6w=; b=xPvio7izlTnunbIQgB56ZWO4kJfZxgDA2Ax2Q4LEsQVEB/LHjHt0OFcv9Xzhb51mfv C3ts5+0RBBWQL9YI53upy3HWKNIJLLlHJXhNEH07+sr9ETp1Qh09YGwSxOp8g5xvbwVs euVB/J5oL9puimbPojzU0fJoO1feR/jiM++t+gHC3BAd3klY2Jhox+UBbc9sJh/50o8f iMIx1zHhGeN6V1ZZlq9uizSdH2Z5jeLDjjnIOhBj/KdH3BC3rty1s0t17npYrG86vqDH oYdXiVi1RjddBn2Tv+F73QfFkMu7MyRG817pEC6G0QZ0o3QFl3okdLf8aMq5qbmr96gS q1sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=n2LAN2Q8; 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 u21si3465328oiv.267.2020.01.27.06.02.20; Mon, 27 Jan 2020 06:02:33 -0800 (PST) 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=n2LAN2Q8; 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 S1729085AbgA0OAs (ORCPT + 99 others); Mon, 27 Jan 2020 09:00:48 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:55974 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727430AbgA0OAr (ORCPT ); Mon, 27 Jan 2020 09:00:47 -0500 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=S0oCkFJi5GJ0pOrckJdOjtGxi2RubX2p/f+d/hw//6w=; b=n2LAN2Q86IiwsDYj1Zwq6Buh2K 7Wdygzr06W4xlwMGl6JzgXacepLqP93mvOxqsiXfLRolQU4hNcWcrT7KwJqKlTKGbrWmD2i/SfxvO 4//Xmnt1oqXftdLBbd08Jh6YZRzfyzzrX7iNXHa8kUt00SR6ph1jvqsvblSHDoCPSYvQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1iw4wQ-0006YJ-LN; Mon, 27 Jan 2020 15:00:38 +0100 Date: Mon, 27 Jan 2020 15:00:38 +0100 From: Andrew Lunn To: Russell King - ARM Linux admin Cc: Jose Abreu , "netdev@vger.kernel.org" , Joao Pinto , Giuseppe Cavallaro , Alexandre Torgue , "David S. Miller" , Jakub Kicinski , Maxime Coquelin , Florian Fainelli , Heiner Kallweit , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC net-next 6/8] net: phylink: Configure MAC/PCS when link is up without PHY Message-ID: <20200127140038.GD13647@lunn.ch> References: <9a2136885d9a892ff170be88fdffeda82c778a10.1580122909.git.Jose.Abreu@synopsys.com> <20200127112102.GT25745@shell.armlinux.org.uk> <20200127114600.GU25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200127114600.GU25745@shell.armlinux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Yes, I realise that, but it comes with the expense of potentially > breaking mvneta and mvpp2, where the settings are automatically > passed between the PCS and MAC in hardware. I also believe DSA > works around this, and I need to look at that. Hi Russell The mv88e6xxx driver has code for when SGMII is used. It transfers the negotiated speed from the PCS to the MAC. But it recently turned out something like this is also needed for other link modes involving the SERDES. It used to work, i think because Phylink would initially configure the MAC approximately right, or the mv88e6xxx driver was looking at phylink state it should not. But it no longer works. I would like to see a generic solution, and would be happy to remove the current SGMII code when you have something to replace it. Andrew