summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorTakeshi Shibagaki <shiba@FreeBSD.org>2004-01-12 14:18:55 +0000
committerTakeshi Shibagaki <shiba@FreeBSD.org>2004-01-12 14:18:55 +0000
commit7636aa79abfb8d7698f36d37cbcc0b5746add2cf (patch)
tree40040a9f47fb93591cb7c6db7ce2f3c98e745403 /sys/dev/usb/uhci.c
parent3beb62d3d6f164b0ad47035983149213bb43b39b (diff)
Notes
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 15162f08184a..d969272aeda0 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -724,6 +724,9 @@ uhci_power(int why, void *v)
#endif
sc->sc_bus.use_polling++;
sc->sc_suspend = why;
+ UWRITE2(sc, UHCI_INTR, 0); /* disable interrupts */
+ uhci_globalreset(sc); /* reset the controller */
+ uhci_reset(sc);
if (cmd & UHCI_CMD_RS)
uhci_run(sc, 0); /* in case BIOS has started it */