Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp979813pxp; Wed, 16 Mar 2022 23:19:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuY/Ki4YjLtSFBQeC/YtQSWiDsdgvfz6HNV7jHyI1dImXVkrzsYOnh/4ni8x9H+TlyTa1Y X-Received: by 2002:a65:4144:0:b0:374:315a:7dff with SMTP id x4-20020a654144000000b00374315a7dffmr2438660pgp.506.1647497957727; Wed, 16 Mar 2022 23:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647497957; cv=none; d=google.com; s=arc-20160816; b=hzdFJafvs4XzHQ89AKjkw5yO3grPcFUxZkso36hTw/E+/T3X6B7m/zGYKus0tS5F4B aXKqbzckS41yYEFScPrTcpYNDZ+bAxv2zBCCjdonPkFcWEHnkXZ3gK+nxpRZgkHlHRGL zgaXwBrGpz58gImRsYMmSd9ICJBOABQluB34XIsCw6bB+IJJJ2IKS55y1akk56QwDRZv +Un008bymdX19sGj1UnCSq0pWt4I4NM7Hast1oM9ywkIWNYeTAlKNufUGZvDiuwUNolq GPlr0HJzExRuPVRwvVu1CDUCLHNQi7mYlDjSZQphjH8QN7V2Sh2D80cMKK3UZ90o2BQz eJZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=aed7EL6Mq/pR6QD3VgW3FmSrRcG8NtN5R/fE/aMIKI8=; b=bLQpdEwdjm+vaqgTo3pfrKczL2PPfizvGrTOETqR1amDvY0ftO/484IV15qv7YsdnV ZcRPYRIMhsqpdwMx/8Xlz2z9EYpyLD4M0NJccfWXeIGUHtBnvhtL0aog41fOdkHrhXgN qQ9kRbCMP78ihTBb8fBFB2IbX+aMrJPvB0sQxtJHT3vgfbXxpvKZzjcrXuBUaNY2x/fH 721QcRKdippVUrBWGgUBk0+b1CzdOhMFLZrIrHwEsQPOoEknB+hbnsiEZv7XAcuHkbUW 4aFRXn9dgr/16MaiWtaU0I977/SkABrvKnANDY1e/5/bIk4rH3G7PN9hkGrMWAniPT0O E+RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@true.cz header.s=xnet header.b=LcIHGOxy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ot8-20020a17090b3b4800b001c64917ad08si6904038pjb.94.2022.03.16.23.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 23:19:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@true.cz header.s=xnet header.b=LcIHGOxy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7765824D991; Wed, 16 Mar 2022 22:04:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345422AbiCOHaS (ORCPT + 99 others); Tue, 15 Mar 2022 03:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345411AbiCOHaQ (ORCPT ); Tue, 15 Mar 2022 03:30:16 -0400 Received: from smtp-out.xnet.cz (smtp-out.xnet.cz [178.217.244.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B64464B1D1; Tue, 15 Mar 2022 00:29:02 -0700 (PDT) Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 420E01822C; Tue, 15 Mar 2022 08:29:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=true.cz; s=xnet; t=1647329340; bh=65xHoffDZObM2VcshT2400SVsaHk3C3lcItOW7dYiro=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=LcIHGOxyWO+eN62q6QH5dSr84iz8ODEZ+2nhHHrUG1w6UE9Mbsyr0H+6UP3nbzIEz iL4g6D3ZcfQvtl5m/BPl39+tqWEOqudRSbqqAc9/G/IA561CnJWYn4B635DHO7RPwP FFTlRZGBFvEp1AbDNB2L8qBC5vk6B2GVeGlH8olY= Received: by meh.true.cz (OpenSMTPD) with ESMTP id 7ab44043; Tue, 15 Mar 2022 08:28:36 +0100 (CET) Date: Tue, 15 Mar 2022 08:28:58 +0100 From: Petr =?utf-8?Q?=C5=A0tetiar?= To: Greg Kroah-Hartman Cc: Maxime Ripard , Bastien =?utf-8?Q?Roucari=C3=A8s?= , Chen-Yu Tsai , Jernej Skrabec , Rob Herring , stable@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "ARM: dts: sun7i: A20-olinuxino-lime2: Fix ethernet phy-mode" Message-ID: <20220315072846.GA9129@meh.true.cz> Reply-To: Petr =?utf-8?Q?=C5=A0tetiar?= References: <20220308125531.27305-1-ynezz@true.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220308125531.27305-1-ynezz@true.cz> X-PGP-Key: https://gist.githubusercontent.com/ynezz/477f6d7a1623a591b0806699f9fc8a27/raw/a0878b8ed17e56f36ebf9e06a6b888a2cd66281b/pgp-key.pub X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Petr Štetiar [2022-03-08 13:55:30]: Hi Greg, one week has passed and as I didn't received any feedback, I'm providing more details in a hope to make it more clear, why I think, that this fix is wrong and should be reverted in LTS kernels 5.10 and 5.15. > This reverts commit 55dd7e059098ce4bd0a55c251cb78e74604abb57 as it breaks > network on my A20-olinuxino-lime2 hardware revision "K" which has Micrel > KSZ9031RNXCC-TR Gigabit PHY. Bastien has probably some previous hardware > revisions which were based on RTL8211E-VB-CG1 PHY and thus this fix was > working on his board. Disclaimer, I don't own A20-olinuxino-lime2 board with earlier HW revisions G/G1/G2 utilizing RTL8211E PHY. My understanding is, that up to kernel version 5.9 and specifically commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config") it was likely possible to use same DTS for A20-olinuxino-lime2 with KSZ9031 or RTL8211E PHYs (all HW revisions). At least I was using my A20-olinuxino-lime2 HW revision K with KSZ9031 PHY just fine with 4.19 kernel. After upgrade to 5.10 LTS kernel my network stopped working, reverting stable backport commit a90398438517 ("ARM: dts: sun7i: A20-olinuxino-lime2: Fix ethernet phy-mode") fixed it. From my POV proper fix for earlier HW revisions G/G1/G2 is introduction of sun7i-a20-olinuxino-lime2-revG.dts with a proper `phy-mode` for RTL8211E PHY. Cheers, Petr > Cc: stable@vger.kernel.org > Cc: Bastien Roucariès > References: https://github.com/openwrt/openwrt/issues/9153 > References: https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A20-OLinuXino-LIME2/hardware_revision_changes_log.txt > Signed-off-by: Petr Štetiar > --- > arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts > index ecb91fb899ff..8077f1716fbc 100644 > --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts > +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts > @@ -112,7 +112,7 @@ &gmac { > pinctrl-names = "default"; > pinctrl-0 = <&gmac_rgmii_pins>; > phy-handle = <&phy1>; > - phy-mode = "rgmii-id"; > + phy-mode = "rgmii"; > status = "okay"; > };