From 8d3d9fe75e72ecb99d3d62391fc4b12702c69db7 Mon Sep 17 00:00:00 2001 From: stsp Date: Sun, 20 Jul 2014 11:57:49 +0000 Subject: [PATCH] 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 --- sys/dev/ic/bwi.c | 4 ++-- 1 file 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); } } -- 2.20.1