svn commit: r327003 - head/sys/dev/bnxt

Stephen Hurd shurd at FreeBSD.org
Tue Dec 19 22:15:48 UTC 2017


Author: shurd
Date: Tue Dec 19 22:15:46 2017
New Revision: 327003
URL: https://svnweb.freebsd.org/changeset/base/327003

Log:
  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 at broadcom.com>
  Sponsored by:	Broadcom Limited
  Differential Revision:	https://reviews.freebsd.org/D13358

Modified:
  head/sys/dev/bnxt/if_bnxt.c

Modified: head/sys/dev/bnxt/if_bnxt.c
==============================================================================
--- head/sys/dev/bnxt/if_bnxt.c	Tue Dec 19 22:08:57 2017	(r327002)
+++ head/sys/dev/bnxt/if_bnxt.c	Tue Dec 19 22:15:46 2017	(r327003)
@@ -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;
 	}
 


More information about the svn-src-head mailing list