rtk_intr() should return 1 only if any interrupts are actually handled.
This commit is contained in:
parent
155a80cb76
commit
7d6d7a0b22
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: rtl81x9.c,v 1.58 2006/09/29 16:38:16 tsutsui Exp $ */
|
/* $NetBSD: rtl81x9.c,v 1.59 2006/09/29 16:40:15 tsutsui Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 1998
|
* Copyright (c) 1997, 1998
|
||||||
@ -86,7 +86,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.58 2006/09/29 16:38:16 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.59 2006/09/29 16:40:15 tsutsui Exp $");
|
||||||
|
|
||||||
#include "bpfilter.h"
|
#include "bpfilter.h"
|
||||||
#include "rnd.h"
|
#include "rnd.h"
|
||||||
@ -1270,11 +1270,11 @@ rtk_intr(arg)
|
|||||||
if (status)
|
if (status)
|
||||||
CSR_WRITE_2(sc, RTK_ISR, status);
|
CSR_WRITE_2(sc, RTK_ISR, status);
|
||||||
|
|
||||||
handled = 1;
|
|
||||||
|
|
||||||
if ((status & RTK_INTRS) == 0)
|
if ((status & RTK_INTRS) == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
handled = 1;
|
||||||
|
|
||||||
if (status & RTK_ISR_RX_OK)
|
if (status & RTK_ISR_RX_OK)
|
||||||
rtk_rxeof(sc);
|
rtk_rxeof(sc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user