Subject: Re: USB (and other stuff) not working on Sony VAIO PCG-FXA47
To: Andrey Petrov <petrov@netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: port-i386
Date: 06/11/2004 06:13:08
On Thursday 10 June 2004 21:45, Andrey Petrov wrote:
> On Thu, Jun 10, 2004 at 09:35:50AM -0700, Jeff Rizzo wrote:
> > 	uhub0: port error, restarting port 1
> > 	uhub1: port error, restarting port 1
> > 	uhub1: port error, giving up port 1
>
> I wonder if this (taken from FreeBSD) patch helps.
>
> Index: uhub.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/usb/uhub.c,v
> retrieving revision 1.66
> diff -u -p -r1.66 uhub.c
> --- uhub.c      23 Apr 2004 17:25:25 -0000      1.66
> +++ uhub.c      10 Jun 2004 20:44:15 -0000
> @@ -287,6 +287,7 @@ USB_ATTACH(uhub)
>                         up->power = USB_MAX_POWER;
>                 else
>                         up->power = USB_MIN_POWER;
> +               up->restartcnt = 0;
>         }
>
>         /* XXX should check for none, individual, or ganged power? */

It fixes all the port errors I was seeing. commit!

Thanks,
Nick