From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH] net: phy: fix wrong mask to phy_modify() Date: Mon, 12 Feb 2018 14:39:49 +0100 Message-ID: <20180212133949.GA5544@lunn.ch> References: <20180212110252.27804-1-inguin@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Russell King , Florian Fainelli To: Ingo van Lil Return-path: Content-Disposition: inline In-Reply-To: <20180212110252.27804-1-inguin@gmx.de> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, Feb 12, 2018 at 12:02:52PM +0100, Ingo van Lil wrote: > When forcing a specific link mode, the PHY driver must clear the > existing speed and duplex bits in BMCR while preserving some other > control bits. This logic was accidentally inverted with the introduction > of phy_modify(). > > Signed-off-by: Ingo van Lil Fixes: fea23fb591cc ("net: phy: convert read-modify-write to phy_modify()") Reviewed-by: Andrew Lunn Andrew