linux-next/Documentation
Alan Stern 088f7fec8a USB: implement usb_enable_autosuspend
This patch (as1326) adds usb_enable_autosuspend() and
usb_disable_autosuspend() routines for use by drivers.  If a driver
knows that its device can handle suspends and resumes correctly, it
can enable autosuspend all by itself.  This is equivalent to the user
writing "auto" to the device's power/level attribute.

The implementation differs slightly from what it used to be.  Now
autosuspend is disabled simply by doing usb_autoresume_device() (to
increment the usage counter) and enabled by doing
usb_autosuspend_device() (to decrement the usage counter).

The set_level() attribute method is updated to use the new routines,
and the USB Power-Management documentation is updated.

The patch adds a usb_enable_autosuspend() call to the hub driver's
probe routine, allowing the special-case code for hubs in quirks.c to
be removed.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-03-02 14:54:10 -08:00
..
2009-10-01 21:17:49 +02:00
2009-12-03 19:28:53 +01:00
2007-07-19 10:04:47 -07:00
2008-02-14 00:16:13 -05:00
2008-10-16 11:21:30 -07:00
2009-12-16 07:20:05 -08:00
2008-02-03 15:54:28 +02:00
2009-12-09 14:21:36 -08:00
2010-02-28 23:55:20 -08:00
2009-12-08 20:30:41 -08:00
2009-12-12 13:08:16 +01:00
2008-01-11 18:22:30 -06:00
2007-05-09 08:57:56 +02:00
2005-04-16 15:20:36 -07:00
2009-12-22 20:43:40 +01:00
2010-02-19 14:38:23 +11:00
2009-06-18 13:04:04 -07:00
2010-02-26 22:37:29 +01:00
2009-11-09 09:40:54 +01:00
2006-11-30 04:58:40 +01:00
2010-03-02 14:54:10 -08:00
2009-10-04 22:53:41 +02:00
2008-12-03 16:09:53 -07:00
2008-07-25 10:53:30 -07:00
2008-11-14 10:39:26 +11:00
2006-11-30 04:58:40 +01:00
2009-10-15 07:25:20 -06:00
2008-03-24 19:22:19 -07:00
2005-04-16 15:20:36 -07:00
2007-10-18 14:37:32 -07:00
2005-04-16 15:20:36 -07:00
2009-07-01 22:36:22 +02:00
2009-08-28 15:21:12 -04:00
2009-04-27 12:00:27 -07:00
2009-04-27 12:00:27 -07:00
2008-08-12 16:07:30 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-11-12 17:17:17 -08:00
2006-06-27 17:32:47 -07:00
2005-04-16 15:20:36 -07:00
2005-06-21 18:46:32 -07:00
2005-04-16 15:20:36 -07:00
2009-04-14 09:00:23 +10:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00