summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2014-11-12 20:07:43 +0000
committernp <np@FreeBSD.org>2014-11-12 20:07:43 +0000
commit575489dd369cba5c06279563e43e61e3474e5a16 (patch)
treebcace271fa947b403796811977813d349c1bc295 /sys/dev
parent21e5b9212bbada09fe93f2d9885641c6f1ce059d (diff)
downloadFreeBSD-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.c4
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;
}
OpenPOWER on IntegriCloud