Merge from NetBSD:

----------------------------
	revision 1.117
	date: 2000/05/30 09:26:06;  author: augustss;  lines: +7 -1
	As a safety, check that the controller is not suspended when we get
	an interrupt.
	----------------------------
This commit is contained in:
Josef Karthauser 2002-04-01 13:36:09 +00:00
parent a4c6b91603
commit 04b496f565
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93534

View File

@ -1,4 +1,4 @@
/* $NetBSD: uhci.c,v 1.112 2000/04/25 14:28:14 augustss Exp $ */
/* $NetBSD: uhci.c,v 1.118 2000/05/30 16:56:54 augustss Exp $ */
/* $FreeBSD$ */
/*
@ -1168,6 +1168,12 @@ uhci_intr(void *arg)
}
#endif
if (sc->sc_suspend != PWR_RESUME) {
printf("%s: interrupt while not operating ignored\n",
USBDEVNAME(sc->sc_bus.bdev));
return (0);
}
status = UREAD2(sc, UHCI_STS);
if (status == 0) /* The interrupt was not for us. */
return (0);