svn commit: r199238 - head/sys/dev/cxgb/common
Navdeep Parhar
np at FreeBSD.org
Fri Nov 13 00:31:51 UTC 2009
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);
More information about the svn-src-head
mailing list