Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753235AbbKAVvz (ORCPT ); Sun, 1 Nov 2015 16:51:55 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:55368 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752741AbbKAVvx (ORCPT ); Sun, 1 Nov 2015 16:51:53 -0500 Date: Sun, 01 Nov 2015 16:51:51 -0500 (EST) Message-Id: <20151101.165151.1119828043753664843.davem@davemloft.net> To: p.fedin@samsung.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, steve.glendinning@shawell.net Subject: Re: [PATCH] net: smsc911x: Reset PHY during initialization From: David Miller In-Reply-To: <1446188779-4184-1-git-send-email-p.fedin@samsung.com> References: <1446188779-4184-1-git-send-email-p.fedin@samsung.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 01 Nov 2015 13:51:53 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 28 From: Pavel Fedin Date: Fri, 30 Oct 2015 10:06:19 +0300 > On certain hardware after software reboot the chip may get stuck and fail > to reinitialize during reset. This can be fixed by ensuring that PHY is > reset too. > > Old PHY resetting method required operational MDIO interface, therefore > the chip should have been already set up. In order to be able to function > during probe, it is changed to use PMT_CTRL register. > > The problem could be observed on SMDK5410 board. > > Signed-off-by: Pavel Fedin I'm pretty sure this is going to break the PHY loopback test. This is such a tricky and fragile area to get right, therefore I want you to specifically guard any change in how PHY reset is done with tests against the specific chips that have the problem. Furthermore, I want you to test whether this has any negative effects on the PHY loopback test. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/