svn commit: r274444 - stable/9/sys/dev/cxgb/common

Navdeep Parhar np at FreeBSD.org
Wed Nov 12 20:09:21 UTC 2014


Author: np
Date: Wed Nov 12 20:09:20 2014
New Revision: 274444
URL: https://svnweb.freebsd.org/changeset/base/274444

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

Modified:
  stable/9/sys/dev/cxgb/common/cxgb_ael1002.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/cxgb/common/cxgb_ael1002.c
==============================================================================
--- stable/9/sys/dev/cxgb/common/cxgb_ael1002.c	Wed Nov 12 20:07:43 2014	(r274443)
+++ stable/9/sys/dev/cxgb/common/cxgb_ael1002.c	Wed Nov 12 20:09:20 2014	(r274444)
@@ -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-stable-9 mailing list