Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7072374ybi; Mon, 22 Jul 2019 06:41:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqctoVSdPgQUIqIgblA71svUewUSZuFDySKMWYCHnzp5CCiSCSt784LwbZ5VaAV/3ZMnYD X-Received: by 2002:aa7:9a92:: with SMTP id w18mr326429pfi.167.1563802880583; Mon, 22 Jul 2019 06:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563802880; cv=none; d=google.com; s=arc-20160816; b=wN8JP0T7MI4s4UOfsv20OB6YO7VE8N10R3fZ4mNCyPyxp9BuR7NfPm8qbHKvCL9+Qu eiHWNKDvF6ojebJmE9tMumyOV02NCS9iv324Wk4c4VaLcqkqaZbFMVyPQH/gxkMnZ6jR NQ5H82jcsqNA+Hh0JX0hlY9iOCy6Jf5zlGLI4aPg7LQfx1fqiOV0h9zXGsdk5CyLclFh FT9+hyE7pPUKJHX8kSDD3NMwjWhnRxlXtvKP2jyRl6fl+urk0sZXUmBsRUBIfbHRGeaM ddQkjFvLn4Iq3fUxhq0QyalMkoqWebqryhzO7ya+sxVMke5Cq52lhE+XQcUDsGO1rX0o 1UOg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m+J1fo9vC+WNoRkwu0Z8WI8RZOnFX+pR10avPTXahe0=; b=ChQ0J48KNGCUFP9WWf2MAiTj8xJF5bL1o4GoA5e2JL5ofRc37xVqK+UlKLQKdh/9JU ugSOIg3HG33Xruo0+LCwrSE+ifNzkaB0Wnr2onNCzd1NP193B/N2/EATz23lFeqAmhOj w92XIRSKkHSvM+6PbKdLofc3K5csfWIoPiUCxB00+15AyZS+clY6Xlt25vbwN7lYNQUy 9WNWAGGkIIugJ6xlJyTS5UQGu1bPxSAs62vjBfYVCXgcU8wFxYnIo/qIyvPMkktQaKFT faqU/OZWhkSpUkbWizHDojZLKwaFhMX8pR9T3nmex2tSo1yoXwT97Y8CyUcM1Db9yQ2u 32Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=YTqDgeSQ; 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 w19si361283pga.462.2019.07.22.06.41.03; Mon, 22 Jul 2019 06:41:20 -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=YTqDgeSQ; 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 S1729708AbfGVNk2 (ORCPT + 99 others); Mon, 22 Jul 2019 09:40:28 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:55898 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbfGVNk2 (ORCPT ); Mon, 22 Jul 2019 09:40:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: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=m+J1fo9vC+WNoRkwu0Z8WI8RZOnFX+pR10avPTXahe0=; b=YTqDgeSQ3BEPwTEjGIIxaQJjEs 6faT7OpX0YBbbl5MGRow7+NXfIducm9Bqgo0fGJ/tEajMGReX3iorXyIVXnAsQjKfY6MgEUttxK7+ X/oka7lwuQcnYVYfVqVduUS7yDVpne3tuBHviPNhd7RPHiXXyioYLebkrGCM9MAa2yj0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hpYYB-0002x6-Uc; Mon, 22 Jul 2019 15:40:23 +0200 Date: Mon, 22 Jul 2019 15:40:23 +0200 From: Andrew Lunn To: Jose Abreu Cc: =?utf-8?Q?Ond=C5=99ej?= Jirman , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue , Russell King , Florian Fainelli , Heiner Kallweit Subject: Re: [PATCH net-next 0/3] net: stmmac: Convert to phylink Message-ID: <20190722134023.GD8972@lunn.ch> References: <20190722124240.464e73losonwb356@core.my.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 On Mon, Jul 22, 2019 at 01:28:51PM +0000, Jose Abreu wrote: > From: Ondřej Jirman > Date: Jul/22/2019, 13:42:40 (UTC+00:00) > > > Hello Jose, > > > > On Tue, Jun 11, 2019 at 05:18:44PM +0200, Jose Abreu wrote: > > > [ Hope this diff looks better (generated with --minimal) ] > > > > > > This converts stmmac to use phylink. Besides the code redution this will > > > allow to gain more flexibility. > > > > I'm testing 5.3-rc1 and on Orange Pi 3 (uses stmmac-sun8i.c glue) compared to > > 5.2 it fails to detect 1000Mbps link and the driver negotiates just a 10Mbps speed. > > > > After going through stmmac patches since 5.2, I think it may be realted to this > > series, but I'm not completely sure. You'll probably have a better understanding > > of the changes. Do you have an idea what might be wrong? Please, see some logs > > below. > > Probably due to: > 5b0d7d7da64b ("net: stmmac: Add the missing speeds that XGMAC supports") > > Can you try attached patch ? > Hi Jose Does this mean that all stmmac variants support 1G? There are none which just support Fast Ethernet? I'm also not sure the change fits the problem. Why did it not negotiate 100FULL rather than 10Half? You are only moving the 1G speeds around, so 100 speeds should of been advertised and selected. Thanks Andrew