From d8e5f3ab241dbaabc2183cf898c669a6e006fae9 Mon Sep 17 00:00:00 2001 From: augustss Date: Sat, 16 Oct 1999 15:35:18 +0000 Subject: [PATCH] Add a DIAGNOSTIC to check that the polling flag is set when resuming. --- sys/dev/usb/uhci.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 78f649e20582..06994a68b903 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.59 1999/10/13 08:10:56 augustss Exp $ */ +/* $NetBSD: uhci.c,v 1.60 1999/10/16 15:35:18 augustss Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -533,6 +533,12 @@ uhci_power(why, v) * controller registers have been lost and BIOS has * not restored them. */ +#ifdef DIAGNOSTIC + if (sc->sc_bus.use_polling == 0) { + printf("uhci_power: weird, polling not set.\n"); + sc->sc_bus.use_polling = 1; + } +#endif sc->sc_suspend = why; if (cmd & UHCI_CMD_RS) uhci_run(sc, 0); /* in case BIOS has started it */