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;
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to