summaryrefslogtreecommitdiff
path: root/sys/dev/pci/uhci_pci.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>1999-08-23 21:54:41 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>1999-08-23 21:54:41 +0000
commit2bdcb23c17abebb9539fb4890c8783933bdd3de2 (patch)
tree521800d7613abde76282256b491eb4dd438ee68f /sys/dev/pci/uhci_pci.c
parentc72d93062e3fb52c5dc983ea7077a473bbdf7d7a (diff)
Disable interrupts early; from NetBSD.
Diffstat (limited to 'sys/dev/pci/uhci_pci.c')
-rw-r--r--sys/dev/pci/uhci_pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/uhci_pci.c b/sys/dev/pci/uhci_pci.c
index a0a56788e76..3c69b8f5170 100644
--- a/sys/dev/pci/uhci_pci.c
+++ b/sys/dev/pci/uhci_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci_pci.c,v 1.2 1999/08/13 08:09:26 fgsch Exp $ */
+/* $OpenBSD: uhci_pci.c,v 1.3 1999/08/23 21:54:40 fgsch Exp $ */
/* $NetBSD: uhci_pci.c,v 1.7 1999/05/20 09:52:35 augustss Exp $ */
/*
@@ -94,6 +94,9 @@ uhci_pci_attach(parent, self, aux)
char *typestr;
usbd_status r;
+ /* Disable interrupts, so we don't can any spurious ones. */
+ bus_space_write_2(sc->iot, sc->ioh, UHCI_INTR, 0);
+
/* Map I/O registers */
if (pci_mapreg_map(pa, PCI_CBIO, PCI_MAPREG_TYPE_IO, 0,
&sc->iot, &sc->ioh, NULL, NULL)) {