Return-Path: Received: from vps0.lunn.ch ([185.16.172.187]:40411 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932131AbeB1PoA (ORCPT ); Wed, 28 Feb 2018 10:44:00 -0500 Date: Wed, 28 Feb 2018 16:43:48 +0100 From: Andrew Lunn To: gregkh@linuxfoundation.org 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: <20180228154348.GB29484@lunn.ch> References: <151983159921954@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151983159921954@kroah.com> Sender: stable-owner@vger.kernel.org List-ID: > 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. Andrew