Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154271872
D13358.id36179.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
D13358.id36179.diff
View Options
Index: sys/dev/bnxt/if_bnxt.c
===================================================================
--- sys/dev/bnxt/if_bnxt.c
+++ sys/dev/bnxt/if_bnxt.c
@@ -2051,8 +2051,17 @@
break;
case HWRM_PORT_PHY_QCFG_OUTPUT_PHY_TYPE_UNKNOWN:
+ /*
+ * If cable is not plugged in, just use AUTO mode.
+ * Once link is up, populate proper list of supported speeds.
+ * Just adding debug message here to notify user
+ */
+ device_printf(softc->dev, "INFORMATION: Unknown Phy type\n");
+ break;
+
default:
- /* Only Autoneg is supported for TYPE_UNKNOWN */
+ /* Report Autoneg for invalid phy type and add a debug message */
+ device_printf(softc->dev, "ERROR: Invalid Phy type\n");
break;
}
@@ -2190,6 +2199,10 @@
link_info->last_flow_ctrl.tx = link_info->flow_ctrl.tx;
link_info->last_flow_ctrl.rx = link_info->flow_ctrl.rx;
link_info->last_flow_ctrl.autoneg = link_info->flow_ctrl.autoneg;
+ /* update media types */
+ ifmedia_removeall(softc->media);
+ bnxt_add_media_types(softc);
+ ifmedia_set(softc->media, IFM_ETHER | IFM_AUTO);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 12:50 PM (10 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32278696
Default Alt Text
D13358.id36179.diff (1 KB)
Attached To
Mode
D13358: bnxt: Correct the logic to report supported speeds
Attached
Detach File
Event Timeline
Log In to Comment