From: Avinash Dayanand Date: Mon, 16 May 2016 17:26:40 +0000 (-0700) Subject: i40e: Removing unnecessary code which caused supported link mode bug X-Git-Tag: v4.1.12-98.0.20170517_2143~42^2~239 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f041ba87b798a2831f5163441dfd886ef2915026;p=users%2Fjedix%2Flinux-maple.git i40e: Removing unnecessary code which caused supported link mode bug Orabug: 24568124 Removing this code which wasn't allowing 100BaseT to show up in the supported link modes for 10GBaseT PHYs. Change-ID: Iada2eafa7ef6b4bac9a2a1380ff533ae5de51e1d Signed-off-by: Avinash Dayanand Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher (cherry picked from commit 01a7a9fef44e5b2f994174c2c1fda80178214d8d) Signed-off-by: Brian Maly Signed-off-by: Dhaval Giani --- diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c index a55ab2e7b84e5..bdbfee97dceee 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@ -313,8 +313,7 @@ static void i40e_phy_type_to_ethtool(struct i40e_pf *pf, u32 *supported, *advertising |= ADVERTISED_Autoneg | ADVERTISED_40000baseCR4_Full; } - if ((phy_types & I40E_CAP_PHY_TYPE_100BASE_TX) && - !(phy_types & I40E_CAP_PHY_TYPE_1000BASE_T)) { + if (phy_types & I40E_CAP_PHY_TYPE_100BASE_TX) { *supported |= SUPPORTED_Autoneg | SUPPORTED_100baseT_Full; *advertising |= ADVERTISED_Autoneg |