Add log messages for unknown and unhandled phy types
Previously, it silently only supported auto, instead, log a message indicating why only auto is supported. Submitted by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com> Sponsored by: Broadcom Limited Differential Revision: https://reviews.freebsd.org/D13358
This commit is contained in:
parent
a0b660301a
commit
ff46fd16e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327003
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user