|
@@ -1593,8 +1593,10 @@ i40e_status i40e_aq_get_phy_capabilities(struct i40e_hw *hw,
|
|
|
status = I40E_ERR_UNKNOWN_PHY;
|
|
|
|
|
|
if (report_init) {
|
|
|
- hw->phy.phy_types = le32_to_cpu(abilities->phy_type);
|
|
|
- hw->phy.phy_types |= ((u64)abilities->phy_type_ext << 32);
|
|
|
+ if (hw->mac.type == I40E_MAC_XL710 &&
|
|
|
+ hw->aq.api_maj_ver == I40E_FW_API_VERSION_MAJOR &&
|
|
|
+ hw->aq.api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_XL710)
|
|
|
+ status = i40e_aq_get_link_info(hw, true, NULL, NULL);
|
|
|
}
|
|
|
|
|
|
return status;
|