On Thursday 06 January 2005 7:48 am, Alan Stern wrote:

> I think you've run across another indication that the suspend/resume 
> support in the USB drivers is not yet ready for prime time.  Does the 
> patch below help?  (Note: this is meant for use with CONFIG_USB_SUSPEND 
> not set.)

This would be a case where the root hub timer isn't
getting shut down "properly" during suspend ... right
now the OHCI and EHCI code test for HCD_IS_RUNNING()
in their hub_status_data() entries.  I remember not
liking that fix, but also not thinking usbcore was
a safe place for the fix -- I forget why.

- Dave


> --- 2.6.10-orig/drivers/usb/core/hcd.c        Mon Jan  3 09:39:35 2005
> +++ 2.6.10/drivers/usb/core/hcd.c     Thu Jan  6 10:43:16 2005
> @@ -534,7 +534,8 @@
>  
>       /* complete the status urb, or retrigger the timer */
>       spin_lock (&hcd_data_lock);
> -     if (urb->dev->state == USB_STATE_CONFIGURED) {
> +     if (urb->dev->state == USB_STATE_CONFIGURED &&
> +                     hcd->state == USB_STATE_RUNNING) {
>               length = hcd->driver->hub_status_data (
>                                       hcd, urb->transfer_buffer);
>               if (length > 0) {
> 
> 
> 


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to