Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 2009 00:31:51 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r199238 - head/sys/dev/cxgb/common
Message-ID:  <200911130031.nAD0VpH6048189@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Fri Nov 13 00:31:51 2009
New Revision: 199238
URL: http://svn.freebsd.org/changeset/base/199238

Log:
  Make sure *some* edc is setup even for an unknown transceiver (assume
  it is optical).

Modified:
  head/sys/dev/cxgb/common/cxgb_ael1002.c

Modified: head/sys/dev/cxgb/common/cxgb_ael1002.c
==============================================================================
--- head/sys/dev/cxgb/common/cxgb_ael1002.c	Fri Nov 13 00:28:16 2009	(r199237)
+++ head/sys/dev/cxgb/common/cxgb_ael1002.c	Fri Nov 13 00:31:51 2009	(r199238)
@@ -1270,7 +1270,7 @@ static int ael2005_reset(struct cphy *ph
 		return err;
 	phy->modtype = (u8)err;
 
-	if (err == phy_modtype_none || err == phy_modtype_unknown)
+	if (err == phy_modtype_none)
 		err = 0;
 	else if (err == phy_modtype_twinax || err == phy_modtype_twinax_long)
 		err = ael2005_setup_twinax_edc(phy, err);
@@ -1981,7 +1981,7 @@ static int ael2020_reset(struct cphy *ph
 	if (err < 0)
 		return err;
 	phy->modtype = (u8)err;
-	if (err == phy_modtype_none || err == phy_modtype_unknown)
+	if (err == phy_modtype_none)
 		err = 0;
 	else if (err == phy_modtype_twinax || err == phy_modtype_twinax_long)
 		err = ael2020_setup_twinax_edc(phy, err);



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