Make one message dependent on ohcidebug, so it doesn't interfere with polled

operation; e.g. when entering a root device or in DDB.
This commit is contained in:
mycroft 2004-06-29 03:56:04 +00:00
parent 0f8b776e09
commit ac575d2a58
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ehci.c,v 1.64 2004/06/23 06:45:56 mycroft Exp $ */
/* $NetBSD: ehci.c,v 1.65 2004/06/29 03:58:14 mycroft Exp $ */
/*
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.64 2004/06/23 06:45:56 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.65 2004/06/29 03:58:14 mycroft Exp $");
#include "ohci.h"
#include "uhci.h"
@ -477,7 +477,7 @@ ehci_intr(void *v)
/* If we get an interrupt while polling, then just ignore it. */
if (sc->sc_bus.use_polling) {
#ifdef DIAGNOSTIC
printf("ehci_intr: ignored interrupt while polling\n");
DPRINTFN(16, ("ehci_intr: ignored interrupt while polling\n"));
#endif
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ohci.c,v 1.148 2004/06/22 18:27:46 mycroft Exp $ */
/* $NetBSD: ohci.c,v 1.149 2004/06/29 03:56:04 mycroft 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.148 2004/06/22 18:27:46 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.149 2004/06/29 03:56:04 mycroft Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1090,7 +1090,7 @@ ohci_intr(void *p)
/* If we get an interrupt while polling, then just ignore it. */
if (sc->sc_bus.use_polling) {
#ifdef DIAGNOSTIC
printf("ohci_intr: ignored interrupt while polling\n");
DPRINTFN(16, ("ohci_intr: ignored interrupt while polling\n"));
#endif
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: uhci.c,v 1.178 2004/03/02 16:32:05 martin Exp $ */
/* $NetBSD: uhci.c,v 1.179 2004/06/29 03:57:36 mycroft 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.178 2004/03/02 16:32:05 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.179 2004/06/29 03:57:36 mycroft Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1176,13 +1176,13 @@ uhci_intr(void *arg)
if (sc->sc_dying)
return (0);
DPRINTFN(15,("uhci_intr: real interrupt\n"));
if (sc->sc_bus.use_polling) {
#ifdef DIAGNOSTIC
printf("uhci_intr: ignored interrupt while polling\n");
DPRINTFN(16, ("uhci_intr: ignored interrupt while polling\n"));
#endif
return (0);
}
return (uhci_intr1(sc));
}