Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160341361
D53611.id179643.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D53611.id179643.diff
View Options
diff --git a/sys/dev/ice/ice_lib.c b/sys/dev/ice/ice_lib.c
--- a/sys/dev/ice/ice_lib.c
+++ b/sys/dev/ice/ice_lib.c
@@ -9654,8 +9654,7 @@
finalize_link_speed:
- /* Cache new user settings for speeds */
- pi->phy.curr_user_speed_req = phy_data.user_speeds_intr;
+ /* Update phy types in config */
cfg->phy_type_low = htole64(phy_low);
cfg->phy_type_high = htole64(phy_high);
@@ -9961,16 +9960,21 @@
device_t dev = sc->dev;
int status;
u64 phy_low, phy_high;
- u8 report_mode = ICE_AQC_REPORT_TOPO_CAP_MEDIA;
+ /*
+ * If the FW supports Link Management V2 we don't need
+ * to save initial PHY configuration as it can be always
+ * read from FW.
+ */
if (ice_is_bit_set(sc->feat_en, ICE_FEATURE_LINK_MGMT_VER_2))
- report_mode = ICE_AQC_REPORT_DFLT_CFG;
- status = ice_aq_get_phy_caps(pi, false, report_mode, &pcaps, NULL);
+ return;
+
+ status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP_MEDIA,
+ &pcaps, NULL);
if (status) {
device_printf(dev,
- "%s: ice_aq_get_phy_caps (%s) failed; status %s, aq_err %s\n",
+ "%s: ice_aq_get_phy_caps failed; status %s, aq_err %s\n",
__func__,
- report_mode == ICE_AQC_REPORT_DFLT_CFG ? "DFLT" : "w/MEDIA",
ice_status_str(status),
ice_aq_str(hw->adminq.sq_last_status));
return;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 24, 11:45 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33924684
Default Alt Text
D53611.id179643.diff (1 KB)
Attached To
Mode
D53611: ice(4): Fix link speed after changing cable type
Attached
Detach File
Event Timeline
Log In to Comment