ice: Add missing PHY type to link settings
authorTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 28 Feb 2019 23:26:00 +0000 (15:26 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 May 2019 08:23:42 +0000 (01:23 -0700)
The PHY type ICE_PHY_TYPE_LOW_25G_AUI_C2C is missing from
ice_get_settings_link_up() which is causing a warning
message for unrecognized PHY.  Add the PHY type to
correctly set the settings and avoid the warning message.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c

index f995ed599cd990c5ba4ea79211766f32b996e9b7..0bfe696d8077e991308b8c81ae3e7d3b2ace0133 100644 (file)
@@ -1034,6 +1034,7 @@ ice_get_settings_link_up(struct ethtool_link_ksettings *ks,
                                                     25000baseCR_Full);
                break;
        case ICE_PHY_TYPE_LOW_25G_AUI_AOC_ACC:
+       case ICE_PHY_TYPE_LOW_25G_AUI_C2C:
                ethtool_link_ksettings_add_link_mode(ks, supported,
                                                     25000baseCR_Full);
                break;