From f2590fdb818226385402750d98cf2020d7de6145 Mon Sep 17 00:00:00 2001 From: augustss Date: Wed, 1 Jan 2003 16:25:59 +0000 Subject: [PATCH] Reissue the MAXP command on resume. From FreeBSD. --- sys/dev/usb/uhci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 19a5c8cd6a2d..4be8d8e434a5 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.166 2002/12/31 02:21:31 dsainty Exp $ */ +/* $NetBSD: uhci.c,v 1.167 2003/01/01 16:25:59 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */ /* @@ -49,7 +49,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.166 2002/12/31 02:21:31 dsainty Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.167 2003/01/01 16:25:59 augustss Exp $"); #include #include @@ -743,6 +743,7 @@ uhci_power(int why, void *v) UHCICMD(sc, cmd | UHCI_CMD_FGR); /* force global resume */ usb_delay_ms(&sc->sc_bus, USB_RESUME_DELAY); UHCICMD(sc, cmd & ~UHCI_CMD_EGSM); /* back to normal */ + UHCICMD(sc, UHCI_CMD_MAXP); UWRITE2(sc, UHCI_INTR, UHCI_INTR_TOCRCIE | UHCI_INTR_RIE | UHCI_INTR_IOCE | UHCI_INTR_SPIE); /* re-enable intrs */ uhci_run(sc, 1); /* and start traffic again */