On Fri, Nov 28, 2003 at 10:51:46AM -0500, Alan Stern wrote:
> On Fri, 28 Nov 2003, Michael Vogt wrote:
[..]
> > When I change drivers/usb/host/uhci-hcd.c:suspend_allowed() to always
> > return 0 (don't suspend on uhci_suspend the but reset), usb seems to
> > work after a suspend/resume with apm.
> > 
> > My system is a ibm thinkpad x30 with the following usb controllers:
> > 00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02)
> > 00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 02)
> > 00:1d.2 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #3) (rev 02)
> > [I can post the complete output of lspci on request]
[..]
> I haven't heard of any problems with that chipset before, and I'm rather
> surprised that changing the suspend_allowed() routine should make any
> difference for an APM suspend.  But the fact is that the UHCI driver has
> lots of little problems, some in the area of suspend/resume as you found.  
> None of them are going to be fixed until at least 2.6.1 or maybe even
> later.

Well, it makes a difference for me. This may be caused by my kernel
configuration or my HW, I don't know. But without my change, my usb
optical mouse does not respond anymore after apm suspend/resume and I
get the messages I descriped in my other posting. With my change, it
survived a dozen of suspend/resumes so far :)

AFAICS suspend_allow() is only used uhci_suspend(struct usb_hcd *hcd,
u32 state):
---------------------------8<-----------------------------------------
        /* Don't try to suspend broken motherboards, reset instead */
        if (suspend_allowed(uhci))
                suspend_hc(uhci);
        else
                reset_hc(uhci);
---------------------------8<-----------------------------------------

If there is a different approach to deal with my problem, I'll happly
test it, just let me know :) Or if there are usb patches against
2.6.0-test11 to test or if you need more information to find the real
cause of the problem (like all of lspci, the logs, my kenrel
configuration). 



thanks, 
 Michael

-- 
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to