diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-05-01 23:30:09 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-05-01 23:30:09 +0000 |
commit | 8f05b071c5794e9396e7ea9b2ea7aaa4e8672de0 (patch) | |
tree | a24325aa09bfa8a625a812253936a0f3770d321f /sys/dev/usb/uhci.c | |
parent | 4081c85fd14958f27dbb6b2dff1d1664679ab06a (diff) | |
download | FreeBSD-src-8f05b071c5794e9396e7ea9b2ea7aaa4e8672de0.zip FreeBSD-src-8f05b071c5794e9396e7ea9b2ea7aaa4e8672de0.tar.gz |
Move the disabling of interrupts right before the allocation of the
resource. Avoids useless interrupts occurring between the allocation
of the interrupt resource and the final initialisation of the
kernel. Cause of these interrupts is unknown (a resuming device?).
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r-- | sys/dev/usb/uhci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 713eb52..e2dabc5 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -319,7 +319,9 @@ uhci_init(sc) } uhci_run(sc, 0); /* stop the controller */ +#if defined(__NetBSD__) UWRITE2(sc, UHCI_INTR, 0); /* disable interrupts */ +#endif uhci_busreset(sc); |