diff options
author | np <np@FreeBSD.org> | 2014-11-12 20:07:43 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2014-11-12 20:07:43 +0000 |
commit | 575489dd369cba5c06279563e43e61e3474e5a16 (patch) | |
tree | bcace271fa947b403796811977813d349c1bc295 /sys/dev | |
parent | 21e5b9212bbada09fe93f2d9885641c6f1ce059d (diff) | |
download | FreeBSD-src-575489dd369cba5c06279563e43e61e3474e5a16.zip FreeBSD-src-575489dd369cba5c06279563e43e61e3474e5a16.tar.gz |
MFC r273280:
cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cxgb/common/cxgb_ael1002.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/cxgb/common/cxgb_ael1002.c b/sys/dev/cxgb/common/cxgb_ael1002.c index fb134f0..bcd2728 100644 --- a/sys/dev/cxgb/common/cxgb_ael1002.c +++ b/sys/dev/cxgb/common/cxgb_ael1002.c @@ -1345,8 +1345,10 @@ static int ael2005_intr_handler(struct cphy *phy) return ret; ret |= cause; - if (!ret) + if (!ret) { + (void) ael2005_reset(phy, 0); ret |= cphy_cause_link_change; + } return ret; } |