Subject: kern/13745: Unable to resume UHCI on VAIO Z505X
To: None <gnats-bugs@gnats.netbsd.org>
From: None <philz@vyx.net>
List: netbsd-bugs
Date: 08/18/2001 06:17:06
>Number: 13745
>Category: kern
>Synopsis: Unable to resume UHCI on VAIO Z505X
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 18 06:13:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Filip Zawadiak
>Release: 1.5.1
>Organization:
>Environment:
NetBSD Vaio.vyx.net 1.5.1 NetBSD 1.5.1 (VAIO) #18: Sat Aug 18 14:30:50 CEST 2001 root@Vaio.vyx.net:/usr/src/sys/arch/i386/compile/VAIO i386
>Description:
After resuming USB doesn't work. Second suspend hangs machine.
>How-To-Repeat:
Suspend, Resume, Suspend = Hang
you have to include uhci in kernel of course :)
>Fix:
*** dev/usb/uhci.bak Sat Aug 18 12:50:24 2001
--- dev/usb/uhci.c Sat Aug 18 13:32:25 2001
***************
*** 679,684 ****
--- 679,689 ----
if (cmd & UHCI_CMD_RS)
uhci_run(sc, 0); /* in case BIOS has started it */
+ /* clear reset, set packet size */
+ cmd &= ~UHCI_CMD_GRESET;
+ cmd |= UHCI_CMD_MAXP;
+ UHCICMD(sc, cmd);
+
/* restore saved state */
UWRITE4(sc, UHCI_FLBASEADDR, DMAADDR(&sc->sc_dma));
UWRITE2(sc, UHCI_FRNUM, sc->sc_saved_frnum);
>Release-Note:
>Audit-Trail:
>Unformatted: