From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:34466 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935078AbeB1Q1e (ORCPT ); Wed, 28 Feb 2018 11:27:34 -0500 Date: Wed, 28 Feb 2018 17:27:34 +0100 From: Greg KH To: Andrew Lunn Cc: rmk+kernel@armlinux.org.uk, alexander.levin@verizon.com, davem@davemloft.net, stable@vger.kernel.org, stable-commits@vger.kernel.org Subject: Re: Patch "net: phy: fix resume handling" has been added to the 4.14-stable tree Message-ID: <20180228162734.GA6860@kroah.com> References: <151983159921954@kroah.com> <20180228154348.GB29484@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180228154348.GB29484@lunn.ch> Sender: stable-owner@vger.kernel.org List-ID: On Wed, Feb 28, 2018 at 04:43:48PM +0100, Andrew Lunn wrote: > > When a PHY has the BMCR_PDOWN bit set, it may decide to ignore writes > > to other registers, or reset the registers to power-on defaults. > > Micrel PHYs do this for their interrupt registers. > > > > The current structure of phylib tries to enable interrupts before > > resuming (and releasing) the BMCR_PDOWN bit. This fails, causing > > Micrel PHYs to stop working after a suspend/resume sequence if they > > are using interrupts. > > > > Fix this by ensuring that the PHY driver resume methods do not take > > the phydev->lock mutex themselves, but the callers of phy_resume() > > take that lock. This then allows us to move the call to phy_resume() > > before we enable interrupts in phy_start(). > > Hi Greg > > This patch introduces some issues. You don't want this patch on its > own, you want it in combination with: > > Fixes: 9c2c2e62df3f ("net: phy: Restore phy_resume() locking assumption") > > Which went into David Millers net tree yesterday and should be making > its way towards stable. > > I suggest you hold off on this patch, until you can do both at the > same time. Thanks for letting me know, I've now dropped this. greg k-h