On Friday, 22 September 2006 17:18, Alan Stern wrote:
> On Fri, 22 Sep 2006, Rafael J. Wysocki wrote:
> 
> > I have tested 2.6.18-rc6-mm2 with your patch applied (it is called 
> > 2.6.18-rc6
> > in the attached dmesg outputs, but that's because I have a "customized"
> > 2.6.18-rc6-mm2 installed and I didn't want to replace it).
> > 
> > I have tested both with and without CONFIG_USB_SUSPEND set.  In either case
> > I booted the system without my USB mouse.  Then, I plugged the mouse in
> > and checked if it worked.  Next, I suspended and resumed the system twice
> > checking if the mouse worked after each resume, without unplugging it.
> > Finally, after the second resume I unplugged and replugged the mouse.
> > 
> > The results are the following:
> > 
> > 1) The kernel compiled without CONFIG_USB_SUSPEND works just fine, suspends
> > and resumes correctly, and the mouse always works (ie. is correctly detected
> > every time).
> 
> Good.
> 
> > 2) The kernel compiled with CONFIG_USB_SUSPEND set doesn't detect the mouse
> > plugged in after a fresh boot.  However, if the mouse is connected to a USB
> > port during an entire suspend/resume cycle, it works after the resume, but
> > when it's unplugged after the resume and replugged, the kernel fails to 
> > detect
> > it.
> > 
> > The outputs of dmesg for each case are attached.
> 
> This helped.  I think I figured out the problem.  Below is a new version 
> of the patch I asked you to try.  It's the same as before except that I 
> removed a bunch of extra code.  Some weird interactions between the driver 
> and usbcore prevented status-change interrupts from being enabled; hence 
> the connect-change events just get lost.
> 
> Anyway, this should solve the problem.

It does.  Now the kernel with CONFIG_USB_SUSPEND set works fine.

Thanks,
Rafael


-- 
You never change things by fighting the existing reality.
                R. Buckminster Fuller

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to