From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [Regression] net/phy/micrel.c v4.9.94 Date: Wed, 18 Apr 2018 14:43:03 +0200 Message-ID: <20180418124303.GD31643@lunn.ch> References: <3bd29bdd-b5ab-03d5-ea53-292f9150ee4c@gtsys.com.hk> <22ccc548-0000-1873-1ea0-1aad140d7131@gtsys.com.hk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: f.fainelli@gmail.com, netdev@vger.kernel.org To: Chris Ruehl Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:60697 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753815AbeDRMnL (ORCPT ); Wed, 18 Apr 2018 08:43:11 -0400 Content-Disposition: inline In-Reply-To: <22ccc548-0000-1873-1ea0-1aad140d7131@gtsys.com.hk> Sender: netdev-owner@vger.kernel.org List-ID: > If I look at the patch I think it should call kszphy_config_init() not _reset() > in the resume function: > > > @@ -715,8 +723,14 @@ static int kszphy_suspend(struct phy_device *phydev) > > static int kszphy_resume(struct phy_device *phydev) > { > + int ret; > + > genphy_resume(phydev); > > - ret = kszphy_config_reset(phydev); > + ret = kszphy_config_init(phydev); > + if (ret) > + return ret; > + > Hi Chris I think there has been a patch for this posted. If i remember correctly, the PHY you have does not call probe, hence phydev->priv is a NULL pointer, so priv->rmii_ref_clk_sel does not work. It would be good to find the patch and make sure it has been accepted, and marked for stable. Andrew