]> err.no Git - linux-2.6/commit
[PATCH] remove suspend-path recursion
authorDavid Brownell <david-b@pacbell.net>
Wed, 14 Sep 2005 02:57:04 +0000 (19:57 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 23:47:38 +0000 (16:47 -0700)
commitc9f89fa40cf274130b56475175a35af961d4b165
tree9d02038c4e5589a2b13df98da647a59d46b69567
parentdb69087437dd5135a9362da1c37fe072070e8f60
[PATCH] remove suspend-path recursion

This patch removes some recursion in the CONFIG_USB_SUSPEND logic, which
suspended children (of devices or hubs) that weren't already suspended.
When it sees such cases, suspend now just fails cleanly.

That logic was not needed during system-wide sleep state transitions; and
given the current notions of how to manage selective suspend transitions,
we don't want it there either.  Where it was particularly handy was coping
with various limitations of the sysfs "echo -n N > power/state" support.
(These include assuming that "N" is always meaningful to the driver; and
that drivers can only transition to state N from state zero.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c