[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#677472: [3.1->3.2 regression] Immediate wake on suspend, associated with OHCI on MCP51



On Mon, 9 Jul 2012, Octavio Alvarez wrote:

> On Sun, 08 Jul 2012 17:28:25 -0700, Alan Stern <stern@rowland.harvard.edu>  
> wrote:
> 
> >> >> Removing my pen drive cleared CCS on [6].
> >> >
> >> > Okay, that explains that.  More or less.  Is this an old USB-1.1 pen
> >> > drive?  If it is USB-2.0 then I would expect it to connect to the EHCI
> >> > controller, not the OHCI controller.
> >>
> >> I don't know... Is there a way to know that? The device is a
> >>
> >> Bus 001 Device 011: ID 0781:5406 SanDisk Corp. Cruzer Micro U3
> >
> > That doesn't mean much by itself.  But the lsusb output you included
> > confirms that the pen drive was running at high speed -- which means
> > that it should never have been connected to the OHCI controller at all.
> > Another mystery.  It appears that your computer's USB hardware is kind
> > of funky.
> 
> Alan, take a look at this:
> 
> Bus#  2
> `-Dev#   1 Vendor 0x1d6b Product 0x0001 Linux Foundation 1.1 root hub
>    |-Dev#  18 Vendor 0x046d Product 0xc05a Logitech, Inc. Optical Mouse M90
>    `-Dev#  19 Vendor 0x046d Product 0xc31d Logitech, Inc.
> Bus#  1
> `-Dev#   1 Vendor 0x1d6b Product 0x0002 Linux Foundation 2.0 root hub
>    `-Dev#  18 Vendor 0x0781 Product 0x5406 SanDisk Corp. Cruzer Micro U3
> 
> For some reason, my USB drive is now on EHCI!

As it should be.  Was there ever a time when it was definitely using
the OHCI controller?  (The CCS status you got before wasn't definite
enough to count -- it showed a connected status but not an enabled
status.)  That should never happen, except when ehci-hcd is unloaded.

> > What happens if you unplug only the keyboard, or only the mouse?
> 
> The only thing I can confirm for now is that with both disconnected
> the system consistently suspends and that I have seen the system NOT
> suspend with either one connected.
> 
> Having said that, I have also seen the system suspend, but I don't
> quite trust these tests. I think I may have failed to make sure
> the settings were appropriate for the test (wrong kernel or wakeup
> disabled).

Well, we can assume that the suspend doesn't work when either device is 
plugged in.

Which suggests another test.  Try unloading ehci-hcd, and plug in the
pen drive.  At that point it should use the OHCI controller.  Then if
you unplug the keyboard and mouse, what happens when you suspend?

My guess is that it will resume immediately.

Alan Stern




Reply to: