From: stsp Date: Sun, 20 Jul 2014 11:57:49 +0000 (+0000) Subject: In bwi(4), don't declare an interrupt as unhandled in case the PHY TX error X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8d3d9fe75e72ecb99d3d62391fc4b12702c69db7;p=openbsd 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 --- 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); } }