Date: Sun, 19 Oct 2014 17:29:45 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273280 - head/sys/dev/cxgb/common Message-ID: <201410191729.s9JHTjM5059212@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410191729.s9JHTjM5059212>