Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2281051imm; Thu, 18 Oct 2018 11:58:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV61YbD0o7iOLhAEO0vHRSSyu5RJsNZl7rZl7AwgOc8z2hNM91hFyr5VFQ5R/H+21RB6gF+sx X-Received: by 2002:a63:cb51:: with SMTP id m17-v6mr28639427pgi.105.1539889122274; Thu, 18 Oct 2018 11:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539889122; cv=none; d=google.com; s=arc-20160816; b=Rkm2wSUzVWKSBwEBbYWO45n4UpKYT7MEZdY045JrMRRYEcv/ajGH9RiJWjYkU7TyC2 5rbti0sQ8r7STHhZxfMFV4nOqYYZ9mOD6EHjyEHfhJPWkbI37eTEmE689UjlKWQbGYVf 0Elw8X1ZwxnIHmoLzQ4OtkJvfjNmca7W8KFC1QMiefLZjKWZkmH0WfvWDdClOUt/7u0o 3RHbsNdPlnaXC6NUI4QVGB+KDfRjuZthlYOmqI1iJMP8bblO7QsMy4oqs1pZ9qXwqyw+ 3V0GSRYKr1lb1eGZuJ/Z1JhX0po5gzQdugZtRNDtB9JIa0REWVbEFiSxgF+WhprbDoIE W4mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=5M+F5zH2yiv+mPVvlcZ27U8nwWDx705mySVRIIp6V2I=; b=wIJ4QoxsOVGwtlEiOIcB4WwTNXmn/w6kfzKPQe//Pc8jYxybIusXg3hX/luSGZQ0Ri TlhJ1LwQDmfJQoLRYwMcuP93+oXdetbvv6mHvKBi1K7B/o2MDDAXrN/iseQbe1I57y1S WF+CFppOLj4Z1/oB65Tk4sg2Xv8VxrA0c89H61IjBKvLOtOtcLrDCcqXTkU4Z81L1cVS BewYNqb3UeaHb9Fw+vyx3bGC4Zy5B2L40xTdaS2URXuiXVcFcNJXxY7GRq4LbNsTJaQo wWJnrahfG7y7wjqkbsfeCrP8KAP39r6yxY8fx876DkcmKc99Ldhxk2t+svmwGiU+iWzn yxng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hRYR0+AN; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si22174422plp.173.2018.10.18.11.58.26; Thu, 18 Oct 2018 11:58:42 -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=pass header.i=@gmail.com header.s=20161025 header.b=hRYR0+AN; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728287AbeJSC60 (ORCPT + 99 others); Thu, 18 Oct 2018 22:58:26 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41194 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbeJSC60 (ORCPT ); Thu, 18 Oct 2018 22:58:26 -0400 Received: by mail-pl1-f196.google.com with SMTP id q17-v6so14726195plr.8; Thu, 18 Oct 2018 11:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5M+F5zH2yiv+mPVvlcZ27U8nwWDx705mySVRIIp6V2I=; b=hRYR0+ANO3CSPjMxn+WQtE9DAyLWwklRv23tEJYwx4BzNkP1bMekXDtMj/u7YEi0eV NtMK7JanHJ//YXGmVpAXGJ/tekhQcjICrEW7FfSUhgO9EahpNpWhwraz9yDssGNbCEOZ sUcOxUxE9xrl+wMCMmPCDavjm3aGpJKFTozxBaVhCV5JMDMN7lZSr07amy1OZnniz+xm nIMwtb5zGkQEWo7NPiqflhWsCYERpItD30PJ0zeUCABP0pmw8iaPvYpO7UQ1hrepEVj/ yJMKjAWof5sfCJS7Wu568EHuUtwCdNKkPPwLK2s3TbhPmXD9xDBlQB3CxC5eWukAmuuR P1Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=5M+F5zH2yiv+mPVvlcZ27U8nwWDx705mySVRIIp6V2I=; b=WLiQusrS5QtrfmvwS+k0hVjBQHAds4CGDpw7hpwERXUfY2cjj5A1jwEe9U9LDpsM7U l/RaN1WtKpBPBGuUxwOS4JLU3tIfWxQJqqbpGXfNv1AvruS0jyE6PUDxOvmZR3FMI6A5 wbrTh9JszOL5tvddqj4wNxctA5Ur+yamrkks9wclptXpbTx7qU7FHYDbZE7PbMgCsXXs hJvgMrvZ/zfXQHF1Tjl9HJfqziJN2h07uCgvmWs683ZqWJSixWw5rgWuwZMHPKC4h0rz xLv2O5tEnr+Sfl+Kc+pR5vZp7ywMErn0nrtYGUAzrh3Jiv3TTiz4Dr8jIP6/5bVqMcyC O9Kg== X-Gm-Message-State: ABuFfogzTkRKMHIRW7tjIIrxu8B83OgrfEzisruTVlOF5iqwSurKl1f0 yjZSMIIlRM+zidYfKHGj6e0jNoHO X-Received: by 2002:a17:902:8b8c:: with SMTP id ay12-v6mr31016175plb.262.1539888964541; Thu, 18 Oct 2018 11:56:04 -0700 (PDT) Received: from [10.67.48.209] ([192.19.223.250]) by smtp.googlemail.com with ESMTPSA id g123-v6sm39592632pfc.67.2018.10.18.11.56.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 11:56:03 -0700 (PDT) Subject: Re: [PATCH] net: ethernet: fec: Add missing SPEED_ To: LABBE Corentin Cc: andrew@lunn.ch, davem@davemloft.net, fugang.duan@nxp.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <1539875100-11121-1-git-send-email-clabbe@baylibre.com> <2621cbc9-47ed-ce2a-b7ee-262f17dc138f@gmail.com> <20181018184715.GA31736@Red> From: Florian Fainelli Openpgp: preference=signencrypt Autocrypt: addr=f.fainelli@gmail.com; prefer-encrypt=mutual; keydata= xsDiBEjPuBIRBACW9MxSJU9fvEOCTnRNqG/13rAGsj+vJqontvoDSNxRgmafP8d3nesnqPyR xGlkaOSDuu09rxuW+69Y2f1TzjFuGpBk4ysWOR85O2Nx8AJ6fYGCoeTbovrNlGT1M9obSFGQ X3IzRnWoqlfudjTO5TKoqkbOgpYqIo5n1QbEjCCwCwCg3DOH/4ug2AUUlcIT9/l3pGvoRJ0E AICDzi3l7pmC5IWn2n1mvP5247urtHFs/uusE827DDj3K8Upn2vYiOFMBhGsxAk6YKV6IP0d ZdWX6fqkJJlu9cSDvWtO1hXeHIfQIE/xcqvlRH783KrihLcsmnBqOiS6rJDO2x1eAgC8meAX SAgsrBhcgGl2Rl5gh/jkeA5ykwbxA/9u1eEuL70Qzt5APJmqVXR+kWvrqdBVPoUNy/tQ8mYc nzJJ63ng3tHhnwHXZOu8hL4nqwlYHRa9eeglXYhBqja4ZvIvCEqSmEukfivk+DlIgVoOAJbh qIWgvr3SIEuR6ayY3f5j0f2ejUMYlYYnKdiHXFlF9uXm1ELrb0YX4GMHz80nRmxvcmlhbiBG YWluZWxsaSA8Zi5mYWluZWxsaUBnbWFpb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r9i/qoV8QCo12MQEo244RRA6VMud06y/E449rWZFSTwGqb0FS0seTcYNvxt8PB2izX+ HZA8SL54j479ubxhfuoTu5nXdtFYFj5Lj5x34LKPx7MpgAmj0H7SDhpFWF2FzcC1bjiW9mjW HaKaX23Awt97AqQZXegbfkJwX2Y53ufq8Np3e1542lh3/mpiGSilCsaTahEGrHK+lIusl6mz Joil+u3k01ofvJMK0ZdzGUZ/aPMZ16LofjFA+MNxWrZFrkYmiGdv+LG45zSlZyIvzSiG2lKy kuVag+IijCIom78P9jRtB1q1Q5lwZp2TLAJlz92DmFwBg1hyFzwDADjZ2nrDxKUiybXIgZp9 aU2d++ptEGCVJOfEW4qpWCCLPbOT7XBr+g/4H3qWbs3j/cDDq7LuVYIe+wchy/iXEJaQVeTC y5arMQorqTFWlEOgRA8OP47L9knl9i4xuR0euV6DChDrguup2aJVU8JPBBgRAgAPAhsMBQJU X9LxBQkeXB3fAAoJEGFXmRW1Y3YOj4UAn3nrFLPZekMeqX5aD/aq/dsbXSfyAKC45Go0YyxV HGuUuzv+GKZ6nsysJw== Message-ID: Date: Thu, 18 Oct 2018 11:55:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181018184715.GA31736@Red> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/18/2018 11:47 AM, LABBE Corentin wrote: > On Thu, Oct 18, 2018 at 11:39:24AM -0700, Florian Fainelli wrote: >> On 10/18/2018 08:05 AM, Corentin Labbe wrote: >>> Since commit 58056c1e1b0e ("net: ethernet: Use phy_set_max_speed() to limit advertised speed"), the fec driver is unable to get any link. >>> This is due to missing SPEED_. >> >> But SPEED_1000 is defined in include/uapi/linux/ethtool.h as 1000, so >> surely this would amount to the same code paths being taken or am I >> missing something here? > > The bisect session pointed your patch, reverting it fix the issue. > BUT since the fix seemed trivial I sent the patch without more test then compile it. > Sorry, I have just found some minutes ago that it didnt fix the issue. > > But your patch is still the cause for sure. > What you are writing is really lowering the confidence level, first Andrew is the author of that patch, and second "just compiling" and pretending this fixes a problem when it does not is not quite what I would expect. I don't have a problem helping you find the solution or the right fix though, even if it is not my patch, but please get the author and actual problem right so we can move forward in confidence, thanks! -- Florian