Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2017 22:15:47 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327003 - head/sys/dev/bnxt
Message-ID:  <201712192215.vBJMFlXh054831@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712192215.vBJMFlXh054831>