From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net: phy: fix flag masking in __set_phy_supported Date: Thu, 05 Jul 2018 09:48:28 +0900 (KST) Message-ID: <20180705.094828.688324722389823002.davem@davemloft.net> References: 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 To: hkallweit1@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:47046 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbeGEAse (ORCPT ); Wed, 4 Jul 2018 20:48:34 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Heiner Kallweit Date: Tue, 3 Jul 2018 22:34:54 +0200 > Currently also the pause flags are removed from phydev->supported because > they're not included in PHY_DEFAULT_FEATURES. I don't think this is > intended, especially when considering that this function can be called > via phy_set_max_speed() anywhere in a driver. Change the masking to mask > out only the values we're going to change. In addition remove the > misleading comment, job of this small function is just to adjust the > supported and advertised speeds. > > Fixes: f3a6bd393c2c ("phylib: Add phy_set_max_speed helper") > Signed-off-by: Heiner Kallweit Applied and queued up for -stable.