Commit 057911ba authored by Chinh T Cao's avatar Chinh T Cao Committed by Jeff Kirsher

ice: Fix flag used for module query

When checking the PHY for status, by specification, the driver
should be using "topology" mode when querying the module type.
Signed-off-by: default avatarChinh T Cao <chinh.t.cao@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 90e47737
...@@ -2031,7 +2031,7 @@ enum ice_status ice_update_link_info(struct ice_port_info *pi) ...@@ -2031,7 +2031,7 @@ enum ice_status ice_update_link_info(struct ice_port_info *pi)
if (!pcaps) if (!pcaps)
return ICE_ERR_NO_MEMORY; return ICE_ERR_NO_MEMORY;
status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP,
pcaps, NULL); pcaps, NULL);
if (!status) if (!status)
memcpy(li->module_type, &pcaps->module_type, memcpy(li->module_type, &pcaps->module_type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment