summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2014-07-20 11:57:50 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2014-07-20 11:57:50 +0000
commit6713489079ffe59f273b6fc68745f901a16096a1 (patch)
treedd752fd5f05260980b770ea28d5a85cf00e5ff5d /sys
parent277d37983e1ce6bb446d0366f62677d93561c306 (diff)
In bwi(4), don't declare an interrupt as unhandled in case the PHY TX error
bit is set. This interrupt condition is handled by resetting the device. ok mpi@ as part of a larger diff
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/bwi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index b83b1e830fc..61fd1237585 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.104 2014/07/20 11:57:05 stsp Exp $ */
+/* $OpenBSD: bwi.c,v 1.105 2014/07/20 11:57:49 stsp Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -645,7 +645,7 @@ bwi_intr(void *xsc)
printf("intr PHY TX error\n");
/* XXX to netisr0? */
bwi_init_statechg(sc, 0);
- return (0);
+ return (1);
}
}