Re: Should the USB device to go into suspend when the USB host is suspended?




Sivaraj wrote:

Hi,

Arlet wrote:

Sivaraj wrote:
Can anybody please share your views on this?

Sivaraj wrote:
Hello,

Is it necessary/MUST for the USB device to go into suspend when the USB
host is suspended, provided that the device is Remote-Wakeup Enabled?
What the spec says?

Don't top-post. Have some patience (24 hours is a good time to wait).
Make sure you provide necessary details for the answer. For example,
what "host" and what "spec" are you talking about ?

Host -> PC
Spec -> USB spec

I am sorry for the top-post, i am new to this. Also i needed the answer
in quick time, i will correct myself when i post in future.. Thanks for
all your responses. Then the spec doesn't hav the info i am looking.
Actually I am testing a scenario where I am suspending the host PC and
observing the behavior of the attached USB device. I want to know this:

When I suspend the host the USB bus will be suspeneded, So if any
connected USB device will not get the bus power during this period, in
this case, what should be state of the device, should the state be
suspended or normal?

As far as a USB device is concerned, it must go into suspend mode when
it detects "suspend signalling" on the bus, and stay active at any
other time.

When a host goes into suspend mode, this is a completely unrelated
event, which just happens to use the same word. A host in suspend (or
any other power save state), has 3 options as far as the USB bus is
concerned:

1) let it stay awake
2) let it go to USB suspend
3) remove power

In the second case, the devices will still be able to receive power
from the USB bus, but at a much reduced current (2.5mA max for devices
supporting remote wakeup).

In the third case, the device will be reset and reconfigured when power
is restored, even when it is self-powered.

What the host does with the USB bus depends on the OS, hardware, and/or
user settings. If you're using Windows, you can probably find
information regarding power management on the microsoft.com site.

.



Relevant Pages

  • Re: Patricks Test9 suspend code.
    ... >> have to hold the power button ten seconds to actually power it off and ... >> code do is successfully suspend something I could resume from. ... USB isn't considered a bus, ... pcmcia doesn't have all pcmcia devices ...
    (Linux-Kernel)
  • Re: [2/6] 2.6.21-rc2: known regressions
    ... ACPI: IRQ0 used by override. ... USB Universal Host Controller Interface driver v3.0 ... psmouse serio2: suspend ... platform vesafb.0: suspend ...
    (Linux-Kernel)
  • X is killed when trying to suspend with USB Mouse plugged in
    ... X is killed and the suspend as well. ... ACPI: IRQ9 SCI: Edge set to Level Trigger. ... PCI: PCI BIOS revision 2.10 entry at 0xfc97e, ... USB Universal Host Controller Interface driver v2.2 ...
    (Linux-Kernel)
  • [RFC] USB device persistence across suspend-to-disk
    ... Lots of people have asked why USB mass-storage devices don't survive ... You can even suspend with your root fs on a USB flash device! ... * power sessions below it will be broken. ... +If the kernel wants to believe that your USB keyboard was unplugged ...
    (Linux-Kernel)
  • Re: Flames over -- Re: Which is simpler?
    ... i.e. there is no relationship between the device number and the usb bus address, so there's no reason the usb layer can't update it's internal data structures to point the old device to the new bus address. ... Also if the USB host controller wants to, can't it assign any address it likes to each device on the bus? ... If the host wanted to, it could power down the bus, and when it powers back up, it could assign the same addresses that they had before to the devices as they are enumerated, and new devices would get unused addresses. ...
    (Linux-Kernel)