Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp516383ybd; Sat, 22 Jun 2019 08:17:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNhHimMrsV6XcRbONlAP605U6ZnCr+F0QazsFSg3Q2YZ76iK5VKGw9MDQl2zqOUWirXUds X-Received: by 2002:a17:902:2a6b:: with SMTP id i98mr50200715plb.75.1561216669423; Sat, 22 Jun 2019 08:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561216669; cv=none; d=google.com; s=arc-20160816; b=DzYDG1rHH0jx5oYODaNIWbSWMHWfy8YPi7XExtKaJBY3usy8dLPWAEwPO5Sr1PKjHl rH7ucZf+EgrDO9DgQly3vkmjxaIAkTLfAYAwYdjoetf530weIUPsh2XKbhvnIeLh+Ghv tsJEH/KYlwCvzDbHHuG+DilHikRhnWSoO25H2aMOoq0KvvCeJ+cBDtPn2ipVl9qR2qQ8 gTd15gxWNOX3kzN/zyL6WQor2IzTolpIokGGxPVICAVS9Tp4Gb7jmtVynjq5QfyTZIxh uAEOOawI3ck7f4QGxclgKmVgAk8AAkRZC74vdcQf2WHyoQsPem2NVfS+r6JlGN1qjJyP IZDw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=I5N4iEoHkmeImFVfgJoUgBgUU7H5EyW4ufZeyH9x/xI=; b=EXsbJsrsKyhE5YQ5coC7ngnnRLL/6DwPpCJmgVeS60U4KIbNWmtOJYXKpAxihR6Ya+ MzEK2yPhreRw3+sQOBCsf05eK+FzeOLr+c4S6P2GyofU6SA+1rhl1LSXDX1otVjPOiCi PWZW9nZfkA8DFvrFrW3KTAD2E4tD2NC0DLtbSIegbHLkYzZT1LLyPQK7ibSsNY3TVXfu whbiFoY+HBLSUA4sCovEw5PVPc1XeoskKDfb0adSsI60VYBL9BXJrFpsNoqicJb1EO7W 292ZTWhxX6pgBvZda9nzCtPo5R0ECuj2LH8Tx9n+JldxO+fEH/2eN/hKx45g6wP6lAOt F5fw== ARC-Authentication-Results: i=1; mx.google.com; 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 f8si5079183pgo.380.2019.06.22.08.17.33; Sat, 22 Jun 2019 08:17:49 -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; 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 S1726397AbfFVPP1 (ORCPT + 99 others); Sat, 22 Jun 2019 11:15:27 -0400 Received: from gloria.sntech.de ([185.11.138.130]:38070 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfFVPP1 (ORCPT ); Sat, 22 Jun 2019 11:15:27 -0400 Received: from p508fd9dc.dip0.t-ipconnect.de ([80.143.217.220] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hehjc-00064g-TU; Sat, 22 Jun 2019 17:15:20 +0200 From: Heiko Stuebner To: Katsuhiro Suzuki Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: rockchip: add ethernet phy node for tinker board Date: Sat, 22 Jun 2019 17:15:20 +0200 Message-ID: <1891431.W4duSCi9rW@phil> In-Reply-To: References: <20190621180017.29646-1-katsuhiro@katsuster.net> <1871177.hjLhdHVgcu@phil> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Katsuhiro, Am Samstag, 22. Juni 2019, 16:50:10 CEST schrieb Katsuhiro Suzuki: > Current linux-next on my environment, 'ifconfig eth0 up' does not > work correctly with following message... > > ----- > root@linaro-alip:~# ifconfig eth0 up > [ 105.028916] rk_gmac-dwmac ff290000.ethernet eth0: stmmac_open: Cannot > attach to PHY (error: -19) > SIOCSIFFLAGS: No such device > ----- > > I checked drivers/net/ethernet/stmicro/stmmac/stmmac_main.c and found > stmmac_init_phy() is going to fail if ethernet device node does not > have following property: > - phy-handle > - phy > - phy-device > > I salvaged old version of linux-next kernel (5.2.0-rc1-20190523), > network device of my Tinker Board worked correctly if use it. > > I have not bisect commit of root cause yet... Is it better to bisect > and find problem instead of sending this patch? That is clearly a regression (even recent) a newer kernel should not break old devicetrees and the mdio subnode creating a mdio bus is already marked as optional. So this will likely affect a lot more boards than the tinker board. So if you can find the time you could try to find the offending commit first, so that ideally the network maintainers can fix that up. Thanks Heiko > On 2019/06/22 17:33, Heiko Stuebner wrote: > > Hi, > > > > Am Freitag, 21. Juni 2019, 20:00:17 CEST schrieb Katsuhiro Suzuki: > >> This patch adds missing mdio and ethernet PHY nodes for rk3328 ASUS > >> tinker board. > >> > >> Signed-off-by: Katsuhiro Suzuki > > > > just for my understanding, which problem does this solve? > > Normally the gmac can establish connections just fine on > > the rk3288 by probing the phy in the automatic way. > > > > And I also don't see any additional properties like phy > > interrupt line below. > > > > > > Thanks > > Heiko > > > >> --- > >> arch/arm/boot/dts/rk3288-tinker.dtsi | 12 ++++++++++++ > >> 1 file changed, 12 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/rk3288-tinker.dtsi b/arch/arm/boot/dts/rk3288-tinker.dtsi > >> index 293576869546..3190817e8d5d 100644 > >> --- a/arch/arm/boot/dts/rk3288-tinker.dtsi > >> +++ b/arch/arm/boot/dts/rk3288-tinker.dtsi > >> @@ -117,6 +117,7 @@ > >> assigned-clocks = <&cru SCLK_MAC>; > >> assigned-clock-parents = <&ext_gmac>; > >> clock_in_out = "input"; > >> + phy-handle = <&phy0>; > >> phy-mode = "rgmii"; > >> phy-supply = <&vcc33_lan>; > >> pinctrl-names = "default"; > >> @@ -127,6 +128,17 @@ > >> tx_delay = <0x30>; > >> rx_delay = <0x10>; > >> status = "ok"; > >> + > >> + mdio0 { > >> + compatible = "snps,dwmac-mdio"; > >> + #address-cells = <1>; > >> + #size-cells = <0>; > >> + > >> + phy0: ethernet-phy@0 { > >> + compatible = "ethernet-phy-ieee802.3-c22"; > >> + reg = <0>; > >> + }; > >> + }; > >> }; > >> > >> &gpu { > >> > > > > > > > > > > > >