aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bnxt
diff options
context:
space:
mode:
authorStephen Hurd <shurd@FreeBSD.org>2017-12-19 22:15:46 +0000
committerStephen Hurd <shurd@FreeBSD.org>2017-12-19 22:15:46 +0000
commitff46fd16e53f4e3b70c7c5e816a8d62892a41e43 (patch)
tree8d6314cc4a615dc5f48708b48d08d2ff2a7bc74c /sys/dev/bnxt
parenta0b660301a1e851b29db439a3185f87014d035ad (diff)
Notes
Diffstat (limited to 'sys/dev/bnxt')
-rw-r--r--sys/dev/bnxt/if_bnxt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/bnxt/if_bnxt.c b/sys/dev/bnxt/if_bnxt.c
index 83aa3b913961..2a0262d49322 100644
--- a/sys/dev/bnxt/if_bnxt.c
+++ b/sys/dev/bnxt/if_bnxt.c
@@ -2085,8 +2085,13 @@ bnxt_add_media_types(struct bnxt_softc *softc)
break;
case HWRM_PORT_PHY_QCFG_OUTPUT_PHY_TYPE_UNKNOWN:
- default:
/* Only Autoneg is supported for TYPE_UNKNOWN */
+ device_printf(softc->dev, "Unknown phy type\n");
+ break;
+
+ default:
+ /* Only Autoneg is supported for new phy type values */
+ device_printf(softc->dev, "phy type %d not supported by driver\n", phy_type);
break;
}