]> git.baikalelectronics.ru Git - kernel.git/commit
usbcore: track whether interfaces are suspended
authorAlan Stern <stern@rowland.harvard.edu>
Sun, 2 Jul 2006 02:11:44 +0000 (22:11 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:50 +0000 (11:58 -0700)
commit8e50072290c937a6f1cbf6f71775c88e7900002a
tree78418a918af1ca6fa33bca474cc086fc6fa74caf
parente8f50236af3b357a95dea6a8332826f699272d26
usbcore: track whether interfaces are suspended

Currently we rely on intf->dev.power.power_state.event for tracking
whether intf is suspended.  This is not a reliable technique because
that value is owned by the PM core, not by usbcore.  This patch (as718b)
adds a new flag so that we can accurately tell which interfaces are
suspended and which aren't.

At first one might think these flags aren't needed, since interfaces
will be suspended along with their devices.  It turns out there are a
couple of intermediate situations where that's not quite true, such as
while processing a remote-wakeup request.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/usb.h
include/linux/usb.h