Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp256597pxu; Wed, 7 Oct 2020 02:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyynZNTxr2ytzk1lQhCtGLuIJxSZZVLllVizMWDdYGWXjE0cB2zxJCzRc6K5o8lYvCLmJFv X-Received: by 2002:a17:906:4f8d:: with SMTP id o13mr2282216eju.20.1602061844466; Wed, 07 Oct 2020 02:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602061844; cv=none; d=google.com; s=arc-20160816; b=G3boFxBn9iMa2wEYvhe8tqyix27oo7A10CbF3vj/mDi0nWaaeJHEh3neyjT6FSv/1a kOE+Sa20j6H6zzDsM43bQSFxnOgbNB8sexCIaqTbK3rFXjohTZ783bE8CHWVQAtfapLv JttCOZNvsmGpBtl+i46F4HwF5NgLdTydZpE5Oq59BSw1VXpOmxxv0K6eyEjvSokR+H4M i9DvgUeBSLVmqmVeXENWRW/SGTIbUZFWzXey8mowzCTLtjf3jyej6IVIiEwJmS1gqGNZ 0pQgkfZ0eNuv+2xidJAPobXBRA7FVadEazxbOVTMKI/jWIIUQfpvyG1tAyp0EZ0IBkOu G1gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Y/4T3cegJ7dgI2Rs3E9hKTkD6zzMlFzdR2Jtx5UdaKI=; b=S2F/1DqA92ZfjiV/yvP/9REjQm5JpIYIim23b8b1YPivxTNB8SkPTHep9G3rZJLIHs x3wvDMJxyn3rnfAtMGAN73XHxCMEi4QtikaCul0Osj1Un6cd3B5/hOj7I6poQJzKDPNm k0At187WuPHewx045M3GAI10+cbNBcPETCfZ/POV29OfpNAG8LkEK2ka8Gw8b35CX0rh pL6mb5GBXejBHrN+63qMVJpbApaYEpR5ZyHEpfddHJiO0+6IhF8b2o0j5MMxEWNflNIM J4aft8f6Uc7rrb3rmJR3cS0+FAMS0FOUa6l8+YiLEji+eby07e9O812E8hAU807QbVJF 4R6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si1009978ejt.731.2020.10.07.02.10.21; Wed, 07 Oct 2020 02:10:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbgJGJGm (ORCPT + 99 others); Wed, 7 Oct 2020 05:06:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726103AbgJGJGl (ORCPT ); Wed, 7 Oct 2020 05:06:41 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F66BC061755 for ; Wed, 7 Oct 2020 02:06:41 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQ5PB-0004Zl-6b; Wed, 07 Oct 2020 11:06:37 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1kQ5PA-00010R-Eh; Wed, 07 Oct 2020 11:06:36 +0200 Date: Wed, 7 Oct 2020 11:06:36 +0200 From: Marco Felsch To: Marek Vasut Cc: Florian Fainelli , Oleksij Rempel , Andrew Lunn , netdev@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, mkl@pengutronix.de, kernel@pengutronix.de, David Jander Subject: Re: PHY reset question Message-ID: <20201007090636.t5rsus3tnkwuekjj@pengutronix.de> References: <20201006080424.GA6988@pengutronix.de> <2cc5ea02-707e-dbb5-c081-4c5202bd5815@gmail.com> <42d4c4b2-d3ea-9130-ef7f-3d1955116fdc@denx.de> <0687984c-5768-7c71-5796-8e16169f5192@gmail.com> <20201007081410.jk5fi6x5w3ab3726@pengutronix.de> <7edb2e01-bec5-05b0-aa47-caf6e214e5a0@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7edb2e01-bec5-05b0-aa47-caf6e214e5a0@denx.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 10:55:55 up 327 days, 14 min, 363 users, load average: 0.16, 0.09, 0.06 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-10-07 10:23, Marek Vasut wrote: > On 10/7/20 10:14 AM, Marco Felsch wrote: > > Hi Marek, > > Hi, > > [...] > > > On 20-10-06 14:11, Florian Fainelli wrote: > >> On 10/6/2020 1:24 PM, Marek Vasut wrote: > > > > ... > > > >>> If this happens on MX6 with FEC, can you please try these two patches? > >>> > >>> https://patchwork.ozlabs.org/project/netdev/patch/20201006135253.97395-1-marex@denx.de/ > >>> > >>> https://patchwork.ozlabs.org/project/netdev/patch/20201006202029.254212-1-marex@denx.de/ > >> > >> Your patches are not scaling across multiple Ethernet MAC drivers > >> unfortunately, so I am not sure this should be even remotely considered a > >> viable solution. > > > > Recently I added clk support for the smcs driver [1] and dropped the > > PHY_RST_AFTER_CLK_EN flag for LAN8710/20 devices because I had the same > > issues. Hope this will help you too. > > > > [1] https://www.spinics.net/lists/netdev/msg682080.html > > I feel this might be starting to go a bit off-topic here, You're right, just wanted to provide you a link :) > but isn't the > last patch 5/5 breaking existing setups ? IMHO the solution proposed using the PHY_RST_AFTER_CLK_EN was wrong so we needed to fix that. Yes we need to take care of DT backward compatibility but we still must be able to fix wrong behaviours within the driver. I could also argue that PHY_RST_AFTER_CLK_EN solution was breaking exisitng setups too. > The LAN8710 surely does need > clock enabled before the reset line is toggled. Yep and therefore you can specify it yet within the DT. Regards, Marco