Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3748994ybd; Tue, 25 Jun 2019 07:51:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpOjvhtyA7tJZ1ohmgekaLZQxS2GvfomTqfdpwOeHAF9uxc7VhuF/oBJhTEREYIy6lUJeX X-Received: by 2002:a63:e018:: with SMTP id e24mr38878202pgh.361.1561474301448; Tue, 25 Jun 2019 07:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561474301; cv=none; d=google.com; s=arc-20160816; b=OICpVdFbE4NOjCP0XFKtaSL8By/bnspUr/phP07ug/WX8Kt9qFUsxTC5CZZMZOwWFS H++/0Wz1dRkjs6IShgGqAdVhWcO2/TLWx/KfanIlUQYtF+grfPzSJyjFLs8NTmgaxCrb LkIybUgLutREkPkuloDvtzMAGTpBPLopM0bK8TmqS15I9BSJYQpipeDwxzWlKfK4SaUv nJ2TV+SpbPEdZCAsaohFnFk8JeeHyUI2JoWhQkuW7GS47W/VV4CJEZ/pFuxb4CecGDT0 K3uxf/0ZDKHE6Uam09wJ8bRrlMb90ENxYbkSUcR6xciuQljHy8ZNyUBKsk22WRpRz9ec hxzQ== 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=ZgkOw5D3P/fjtwFB3Tcj7uXmbq5UBoyXYtEvi0Cd5KQ=; b=Z5+9V0Q2/7dgSPWYNGuVktiUAC2Lmzg3T1QgVe1KdF7awAKvxveQBjDYGyomEFSeMd n0/geKVlxZ2r/nNc2dxqoHtBDAqdB5xhq6AWgmVcIBqvbkd16jb2D1EidGeHpkYuNu+O 5JDfTpu33ILiB7GDDj3xq7XtYQoqiqW9f7be7ERbswaKj4GMIHgNZeYhl8iVNJVU2gLy jrX5Kb4B3CQB3RBkXvBq5dI+7/WQu5gfh5RnPRKZqXvhhUmBrI8X4Te6RVf4Cjywzovn EP48H24eBrfir8EQLBz+RVg2fOAz4HbgWlDyrg1fAU5ao0uUYkYMl1RIpRmLOoOnarzt Si3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b="H31eTT/z"; 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 d6si14138567pfc.139.2019.06.25.07.51.25; Tue, 25 Jun 2019 07:51:41 -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="H31eTT/z"; 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 S1731285AbfFYOvK (ORCPT + 99 others); Tue, 25 Jun 2019 10:51:10 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:58142 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730777AbfFYOvK (ORCPT ); Tue, 25 Jun 2019 10:51:10 -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=ZgkOw5D3P/fjtwFB3Tcj7uXmbq5UBoyXYtEvi0Cd5KQ=; b=H31eTT/zqFXIrWiHqPMM5QkYYw WYq1+nRYh3eLMpTzHQG7qEy5Ae75pW2TtG9fvMLqz9NRepPGejbzjVEun4doa8/2kLWioOy9Y1+of K6kD32lrJfTt4gjLMqNUeOymXU2cJiC1NAO1NH6KvOvx3nayhOaziJTYa9M8Y6+BDXBc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hfmmn-000747-F7; Tue, 25 Jun 2019 16:51:05 +0200 Date: Tue, 25 Jun 2019 16:51:05 +0200 From: Andrew Lunn To: Katsuhiro Suzuki Cc: Jose Abreu , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue Subject: Re: [PATCH net-next] net: stmmac: Fix the case when PHY handle is not present Message-ID: <20190625145105.GA4722@lunn.ch> References: <351cce38d1c572d8b171044f2856c7fae9f89cbc.1561450696.git.joabreu@synopsys.com> <78EB27739596EE489E55E81C33FEC33A0B9D78A2@DE02WEMBXB.internal.synopsys.com> <5859e2c5-112f-597c-3bd5-e30e96b86152@katsuster.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5859e2c5-112f-597c-3bd5-e30e96b86152@katsuster.net> 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 Tue, Jun 25, 2019 at 11:40:00PM +0900, Katsuhiro Suzuki wrote: > Hello Jose, > > This patch works fine with my Tinker Board. Thanks a lot! > > Tested-by: Katsuhiro Suzuki > > > BTW, from network guys point of view, is it better to add a phy node > into device trees that have no phy node such as the Tinker Board? Hi Katsuhiro It makes it less ambiguous if there is a phy-handle. It is then very clear which PHY should be used. For a development board, which people can be tinkering around with, there is a chance they add a second PHY to the MDIO bus, or an Ethernet switch, etc. Without explicitly listing the PHY, it might get the wrong one. However this is generally a problem if phy_find_first() is used. I think in this case, something is setting priv->plat->phy_addr, so it is also clearly defined which PHY to use. Andrew