From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH 4/6] sh_eth: remove custom .nway_reset from ethtool ops Date: Thu, 24 May 2018 15:30:44 +0200 Message-ID: <20180524133044.GG24557@lunn.ch> References: <1527160318-10958-1-git-send-email-vladimir_zapolskiy@mentor.com> <1527160318-10958-5-git-send-email-vladimir_zapolskiy@mentor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "David S. Miller" , Sergei Shtylyov , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org To: Vladimir Zapolskiy Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:43587 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965390AbeEXNar (ORCPT ); Thu, 24 May 2018 09:30:47 -0400 Content-Disposition: inline In-Reply-To: <1527160318-10958-5-git-send-email-vladimir_zapolskiy@mentor.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, May 24, 2018 at 02:11:56PM +0300, Vladimir Zapolskiy wrote: > The change fixes a sleep in atomic context issue, which can be > always triggered by running 'ethtool -r' command, because > phy_start_aneg() protects phydev fields by a mutex. > > Another note is that the change implicitly replaces phy_start_aneg() > with a newer phy_restart_aneg(). > > Signed-off-by: Vladimir Zapolskiy Reviewed-by: Andrew Lunn Andrew