Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3479008ybl; Mon, 27 Jan 2020 04:57:17 -0800 (PST) X-Google-Smtp-Source: APXvYqx6VMXOOc3y83Av7k21DlXXlxEVL/iS6qsNXtrs+2Wlcog/BSoZp27kEY0MAMeBF85L5rH5 X-Received: by 2002:aca:f484:: with SMTP id s126mr6970091oih.48.1580129836805; Mon, 27 Jan 2020 04:57:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580129836; cv=none; d=google.com; s=arc-20160816; b=b4r2J3KIilpuy7nas0ytOrut2ZxbpN1H6qM/z3uumXbiGaU0UjxLw/3Grm/YsfMOah EBdqNwWVh7RqTF6HlUTyYuilGRF/zPEP9AA1yG/ZxSO7jOcJxN3L+v8AYcTdprLjJYEb kujOhCm4Rmvpp9zRmF6OESclUsS8mQcdYv1UVBpCWYZubHxbNeyfZmv3lOgAFzZ6AHW4 aNyv7X0LNHGQoHaZBdyoiY2ShG1JYrGvbRq8lHo8kl2TD5/6bR2OjQBo32Ag482jBHGU BY+Z+RxuBWayicJ0gxSdr+rqayS2wi/MdFIZUSOPmlu9g9csM8AN310ISqzsZkdjRbqf RwBQ== 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=py0/AUeA9tDP937GDApbDIhhJ7mPRllvuk6jqlAolLw=; b=Gva4LReuRQ+K47K+DDzLW614ZwP+jrGKQFOVzpYIwTn6AWhAEn8u5jrXfYolHJs3iD 1C8u0AH50HLavTekgnRnliTmh85iPzAtVUU/VVJNXWUIHV+77oUcAswUTaLf3kgwzjQe 94+Jxb81RFltFFcLL0Rs+dyUqZ1tVB4i1q9+tOE8O3PkxBJCh5TF0zEboL2+OKv0iCUU CdShk9FpLm1p6BlPRJt4qKaDSfNt3Uhewr7S9mVx/CtTT2XKkbbNCMs2aqtWeiAvaUE0 vO2yV9C1YFZZcVoJ5IU1YCG2RiVeau5nazex4SZYz4M3CrhzUbKvJt2SFiluUbOgudrQ 9JrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=GOimjhJ6; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si7294962otk.215.2020.01.27.04.57.05; Mon, 27 Jan 2020 04:57:16 -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 (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=GOimjhJ6; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730342AbgA0LqN (ORCPT + 99 others); Mon, 27 Jan 2020 06:46:13 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:34930 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729724AbgA0LqN (ORCPT ); Mon, 27 Jan 2020 06:46:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=py0/AUeA9tDP937GDApbDIhhJ7mPRllvuk6jqlAolLw=; b=GOimjhJ60sQTWMTcrsW+8/RXc I/aWpmkEN1wmeFYPsQY7wYMww/awb5QDQvVADkiDJ8Kkq8Php4f3d88i2W9V47tt++YlKWm9XXY1W WF5JpCLsAOk26UM8d6w4yKz+u2VydMbhoIV/8rlUAxiJzHFEt0EL9fuYggga9AAAgbMlT3aI2iR3b NXnUV9CoULdc5yTeNdth7mWTKstGISo1EUfc/a7tX1Fka7NruUDvVsnhWBAJ1FzbLutTDXGyXzQo4 Ont9UQf1UtnTB+ofsYzuMZTTWFeev5RFoAtVlW3yhao9YTXbDBcJbzTolNMYK8CICjggq8hEM1G8j T+tWanbag==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:60536) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iw2qC-00011S-Lg; Mon, 27 Jan 2020 11:46:04 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1iw2q8-0001NE-Ro; Mon, 27 Jan 2020 11:46:00 +0000 Date: Mon, 27 Jan 2020 11:46:00 +0000 From: Russell King - ARM Linux admin To: Jose Abreu Cc: "netdev@vger.kernel.org" , Joao Pinto , Giuseppe Cavallaro , Alexandre Torgue , "David S. Miller" , Jakub Kicinski , Maxime Coquelin , Andrew Lunn , 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: <20200127114600.GU25745@shell.armlinux.org.uk> References: <9a2136885d9a892ff170be88fdffeda82c778a10.1580122909.git.Jose.Abreu@synopsys.com> <20200127112102.GT25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 27, 2020 at 11:38:05AM +0000, Jose Abreu wrote: > From: Russell King - ARM Linux admin > Date: Jan/27/2020, 11:21:02 (UTC+00:00) > > > On Mon, Jan 27, 2020 at 12:09:11PM +0100, Jose Abreu wrote: > > > When we don't have any real PHY driver connected and we get link up from > > > PCS we shall configure MAC and PCS for the desired speed and also > > > resolve the flow control settings from MAC side. > > > > This is certainly the wrong place for it. Please hold off on this patch > > for the time being. Thanks. > > This is actually the change that makes everything work ... > > I need to configure PCS before Aneg is complete and then I need to > configure MAC once Aneg is done and link is up with the outcome speed and > flow control. 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. However, right now I'm in the middle of rebasing my git tree on top of v5.5 and can't say much more until I've finished that. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up