From: David Miller Subject: Re: [PATCH net] net: phy: fix too strict check in phy_start_aneg Date: Tue, 15 Jan 2019 13:45:53 -0800 (PST) Message-ID: <20190115.134553.201929364823715675.davem@davemloft.net> References: <0a5701fa-0c5b-2375-08d6-a65145f83d96@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: andrew@lunn.ch, f.fainelli@gmail.com, netdev@vger.kernel.org, chris@chris-wilson.co.uk To: hkallweit1@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57550 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733064AbfAOVpy (ORCPT ); Tue, 15 Jan 2019 16:45:54 -0500 In-Reply-To: <0a5701fa-0c5b-2375-08d6-a65145f83d96@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Heiner Kallweit Date: Wed, 9 Jan 2019 20:34:56 +0100 > When adding checks to detect wrong usage of the phylib API we added > a check to phy_start_aneg() which is too strict. If the phylib > state machine is in state PHY_HALTED we should allow reconfiguring > and restarting aneg, and just don't touch the state. > > Fixes: 2b3e88ea6528 ("net: phy: improve phy state checking") > Reported-by: Chris Wilson > Signed-off-by: Heiner Kallweit Applied.