Don't bother with interrupts when being disconnected.
This commit is contained in:
parent
3f54e2c74f
commit
9716a5f26d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ohci.c,v 1.110 2001/11/20 16:08:10 augustss Exp $ */
|
||||
/* $NetBSD: ohci.c,v 1.111 2001/11/20 21:12:46 augustss Exp $ */
|
||||
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
|
||||
|
||||
/*
|
||||
@ -46,7 +46,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.110 2001/11/20 16:08:10 augustss Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.111 2001/11/20 21:12:46 augustss Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -1056,6 +1056,9 @@ ohci_intr(void *p)
|
||||
{
|
||||
ohci_softc_t *sc = p;
|
||||
|
||||
if (sc->sc_dying)
|
||||
return (0);
|
||||
|
||||
/* If we get an interrupt while polling, then just ignore it. */
|
||||
if (sc->sc_bus.use_polling) {
|
||||
#ifdef DIAGNOSTIC
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uhci.c,v 1.145 2001/11/20 16:08:10 augustss Exp $ */
|
||||
/* $NetBSD: uhci.c,v 1.146 2001/11/20 21:12:46 augustss Exp $ */
|
||||
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
|
||||
|
||||
/*
|
||||
@ -49,7 +49,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.145 2001/11/20 16:08:10 augustss Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.146 2001/11/20 21:12:46 augustss Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -1166,6 +1166,9 @@ uhci_intr(void *arg)
|
||||
{
|
||||
uhci_softc_t *sc = arg;
|
||||
|
||||
if (sc->sc_dying)
|
||||
return (0);
|
||||
|
||||
DPRINTFN(15,("uhci_intr: real interrupt\n"));
|
||||
if (sc->sc_bus.use_polling) {
|
||||
#ifdef DIAGNOSTIC
|
||||
|
Loading…
Reference in New Issue
Block a user