Page MenuHomeFreeBSD

D13358.id36179.diff
No OneTemporary

D13358.id36179.diff

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

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)

Event Timeline