• Brett Creeley's avatar
    ice: Add support to print error on PHY FW load failure · 99d40752
    Brett Creeley authored
    Some devices have support for loading the PHY FW and in some cases this
    can fail. When this fails, the FW will set the corresponding bit in the
    link info structure. Also, the FW will send a link event if the correct
    link event mask bit is set. Add support for printing an error message
    when the PHY FW load fails during any link configuration flow and the
    link event flow.
    
    Since ice_check_module_power() is already doing something very similar
    add a new function ice_check_link_cfg_err() so any failures reported in
    the link info's link_cfg_err member can be printed in this one function.
    
    Also, add the new ICE_FLAG_PHY_FW_LOAD_FAILED bit to the PF's flags so
    we don't constantly print this error message during link polling if the
    value never changed.
    Signed-off-by: default avatarBrett Creeley <brett.creeley@intel.com>
    Tested-by: default avatarSunitha Mekala <sunithax.d.mekala@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    99d40752
ice_adminq_cmd.h 70.2 KB