On Tue, 23 Mar 2004, Lukas Hejtmanek wrote:

> On Mon, Mar 22, 2004 at 06:01:06PM -0500, Alan Stern wrote:
> > It depends on what's causing the mouse not to work.  Maybe the mouse 
> > itself needs to be reinitialized somehow.  Can you post the pre-suspend 
> > and post-resume contents of that /proc/driver/uhci file?
> 
> before:
> HC status
>   usbcmd    =     00c1   Maxp64 CF RS 
>   usbstat   =     0000   
>   usbint    =     000f
>   usbfrnum  =   (0)9c0
>   flbaseadd = 0e6ac9c0
>   sof       =       40
>   stat1     =     0080  
>   stat2     =     01a5   LowSpeed Enabled Connected
> Frame List
> Skeleton QH's
> - skel_int8_qh
>     [ce6ea240] link (0e6ea152) element (0e6e9040)
>       0: [ce6e9040] link (00000001) e3 SPD LS IOC Active NAK Length=7ff MaxLen=3 DT1 
> EndPt=1 Dev=2, PID=69(IN) (buf=0e5f9000)
> 
> after:
> HC status
>   usbcmd    =     00c1   Maxp64 CF RS 
>   usbstat   =     0000   
>   usbint    =     000f
>   usbfrnum  =   (1)684
>   flbaseadd = 0e6ac684
>   sof       =       40
>   stat1     =     0080  
>   stat2     =     01a5   LowSpeed Enabled Connected
> Frame List
> Skeleton QH's
> - skel_int8_qh
>     [ce6ea240] link (0e6ea152) element (0e6e9040)
>       0: [ce6e9040] link (00000001) e1 SPD LS IOC Active CRC/Timeo Length=7ff 
> MaxLen=3 DT1 EndPt=1 Dev=2, PID=69(IN) (buf=0e5f9000)

That looks like the mouse didn't wake up right away.  I think there's a 
good chance it needs to be reset following the resume.

> Btw, rmmod & modprobe restores mouse without unpluging & pluging

Yes, one effect of reinstalling the UHCI driver is to cause a reset for
all devices attached to any UHCI controllers.

> > Also, does that patch I sent help avoid the kernel errors when you rmmod 
> > the UHCI driver?
> 
> I've patched 2.6.5-rc2-bk2 kernel and it seems to be ok. rmmod & modprobe seems
> to be harmless.

That's good.  So for now, your strategy of using rmmod & modprobe will be 
able to work.  Eventually the USB mouse driver will have to be updated to 
request a reset after a resume.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to