i40e: Removing unnecessary code which caused supported link mode bug
authorAvinash Dayanand <avinash.dayanand@intel.com>
Mon, 16 May 2016 17:26:40 +0000 (10:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 27 Jun 2016 22:56:37 +0000 (15:56 -0700)
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 <avinash.dayanand@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c

index 8381dabf052469c9a27ddee00944a54de350e906..4962e855fbd372b12adb30fafb8541d6c3c1b6f8 100644 (file)
@@ -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 |