svn commit: r273280 - head/sys/dev/cxgb/common

Navdeep Parhar np at FreeBSD.org
Sun Oct 19 17:29:45 UTC 2014


Author: np
Date: Sun Oct 19 17:29:44 2014
New Revision: 273280
URL: https://svnweb.freebsd.org/changeset/base/273280

Log:
  cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.
  
  MFC after:	1 week

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	Sun Oct 19 16:46:36 2014	(r273279)
+++ head/sys/dev/cxgb/common/cxgb_ael1002.c	Sun Oct 19 17:29:44 2014	(r273280)
@@ -1345,8 +1345,10 @@ static int ael2005_intr_handler(struct c
 		return ret;
 
 	ret |= cause;
-	if (!ret)
+	if (!ret) {
+		(void) ael2005_reset(phy, 0);
 		ret |= cphy_cause_link_change;
+	}
 	return ret;
 }
 


More information about the svn-src-head mailing list