From 89d815a706976c9d22c30011a3f1df19220d4026 Mon Sep 17 00:00:00 2001 From: iedowse Date: Thu, 26 Dec 2002 13:25:57 +0000 Subject: [PATCH] When resuming after a system suspend, re-issue the UHCI_CMD_MAXP command in case this setting was not saved. Since bandwidth reclamation (-current only) often results in bus activity continuing to the end of every frame, most transfers would fail with IOERROR if this setting is missed. Reviewed by: n_hibma MFC after: 1 week --- sys/dev/usb/uhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index c96294a9ccbb..0f577242e752 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -720,6 +720,7 @@ uhci_power(int why, void *v) UHCICMD(sc, cmd & ~UHCI_CMD_EGSM); /* back to normal */ UWRITE2(sc, UHCI_INTR, UHCI_INTR_TOCRCIE | UHCI_INTR_RIE | UHCI_INTR_IOCE | UHCI_INTR_SPIE); /* re-enable intrs */ + UHCICMD(sc, UHCI_CMD_MAXP); uhci_run(sc, 1); /* and start traffic again */ usb_delay_ms(&sc->sc_bus, USB_RESUME_RECOVERY); sc->sc_bus.use_polling--;