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

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

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

Modified: stable/10/sys/dev/cxgb/common/cxgb_ael1002.c
==============================================================================
--- stable/10/sys/dev/cxgb/common/cxgb_ael1002.c        Wed Nov 12 20:01:10 
2014        (r274442)
+++ stable/10/sys/dev/cxgb/common/cxgb_ael1002.c        Wed Nov 12 20:07:43 
2014        (r274443)
@@ -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;
 }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to