[linux-pm] Resume/wakeup during sleep transition

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

 



Hi!

> > USB should really pass down suspend_message_t parameter it got from
> > higher levels.
> 
> It does, but PM_SUSPEND_DISK is kind of not-very-useful.

But it is not getting PM_SUSPEND_DISK in its suspend callback. It is
getting 

Freeze for swsusp snapshot -- stop DMA and interrupts. No need to put
devices into low power mode, but you must be able to reinitialize
device from scratch in resume method. This has two flavors, its done
once on suspending kernel, once on resuming kernel. event = FREEZE,
flags = DURING_SUSPEND or DURING_RESUME

> For systems that don't provide VBUS current during the
> upcoming system sleep state, it'd be more appropriate
> to just disconnect() the drivers.

No. Devices can have external power supplies.

> So the information that's relevant to the USB device
> drivers seems rather unrelated to anything provided
> through the "echo foo > /sys/power/state" request.

Provide helper function, then.

int usb_will_I_get_vbus(suspend_message_t x)

That's the way to go.
								Pavel

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux