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
..
2010-02-20 14:10:48 +00:00
2010-01-11 09:34:04 -08:00
2010-02-24 13:17:03 +00:00
2010-02-10 23:04:18 -08:00
2010-01-18 12:30:27 +01:00
2010-02-02 13:02:16 +09:00
2010-02-28 23:55:20 -08:00
2010-03-02 14:53:48 -08:00
2010-01-06 16:18:15 -05:00
2010-03-01 15:11:32 -05:00
2010-01-29 08:22:01 -08:00
2010-02-04 09:59:50 +01:00
2010-02-26 13:58:08 +01:00
2010-02-22 13:44:45 +01:00
2010-02-22 13:44:45 +01:00
2010-02-25 10:34:26 +01:00
2010-02-05 14:54:10 +01:00
2010-02-05 07:35:05 -08:00
2010-02-02 15:58:48 -08:00
2010-02-25 10:34:55 +01:00
2010-02-25 10:34:26 +01:00
2010-02-04 13:29:53 -08:00
2010-02-26 20:39:10 +01:00
2010-01-12 10:02:46 +01:00
2010-01-12 10:14:42 +01:00
2010-02-28 10:59:44 -08:00
2010-01-25 12:26:38 -02:00
2010-02-25 10:34:49 +01:00
2010-01-26 20:54:50 +01:00
2009-12-29 19:58:16 +01:00
2010-02-19 10:41:13 -05:00
2010-02-28 10:20:25 -08:00
2010-02-28 10:20:25 -08:00
2010-01-06 00:23:51 -08:00
2010-01-11 14:32:44 +01:00
2010-02-04 00:50:44 -08:00
2010-02-25 17:39:16 +01:00
2010-02-26 17:05:10 -08:00
2010-02-04 01:07:12 +01:00
2010-02-12 17:32:41 +00:00
2010-02-26 13:58:08 +01:00
2010-02-07 03:06:22 -05:00
2009-12-25 17:30:22 -08:00
2010-03-01 10:38:09 -08:00
2010-02-26 14:00:43 +01:00
2010-02-22 16:17:00 -08:00
2010-01-13 11:14:18 +01:00
2010-01-30 01:47:49 -08:00
2010-02-23 08:38:42 +01:00
2010-02-08 08:55:46 +01:00
2010-02-16 15:11:08 -08:00
2010-01-07 11:58:37 -06:00
2010-01-11 09:34:04 -08:00
2009-12-31 19:45:04 +00:00
2010-03-01 14:58:46 -05:00
2010-01-12 21:02:00 -08:00
2010-01-16 12:29:32 +01:00
2010-02-03 17:39:50 +11:00
2010-02-25 09:41:01 +01:00
2010-01-16 12:15:40 -08:00
2010-02-17 18:28:05 +01:00
2010-02-14 07:13:47 -07:00
2010-02-14 13:02:44 -07:00
2010-01-06 19:47:10 +11:00
2010-01-27 09:20:03 -08:00
2010-02-22 16:15:17 -08:00
2010-02-22 16:16:55 -08:00
2010-02-22 16:21:02 -08:00
2010-02-28 10:59:18 -08:00
2010-02-08 08:57:36 +01:00
2010-02-28 10:20:25 -08:00
2010-01-17 21:52:11 +11:00
2010-01-19 01:59:02 -08:00
2010-02-24 08:30:08 +01:00
2010-01-13 10:51:39 +01:00
2010-02-26 20:39:08 +01:00
2010-02-26 20:39:11 +01:00
2010-01-11 09:45:37 -08:00
2010-02-23 13:45:26 -08:00
2010-02-08 18:19:41 -06:00
2010-02-25 09:41:02 +01:00
2010-02-25 09:41:02 +01:00
2010-02-27 09:53:52 +01:00
2010-02-26 08:20:46 +01:00
2010-02-26 08:20:46 +01:00
2010-01-02 11:17:05 -08:00
2010-01-04 11:33:58 +01:00
2010-02-26 20:39:09 +01:00
2010-02-25 09:41:03 +01:00
2010-03-01 09:00:29 -08:00
2010-01-21 23:55:25 -08:00
2010-02-16 13:38:56 +09:00
2010-02-25 09:41:00 +01:00
2010-01-14 22:38:09 -05:00
2010-02-28 10:20:25 -08:00
2009-12-25 17:30:22 -08:00
2010-01-29 10:15:19 +01:00
2010-01-21 13:39:03 +01:00
2010-01-16 12:15:38 -08:00
2010-01-07 11:58:36 -06:00
2010-03-02 14:54:10 -08:00
2010-02-26 15:10:40 -03:00
2010-02-24 14:22:08 +10:30
2010-02-24 14:22:26 +10:30
2010-02-24 14:23:00 +10:30
2010-02-24 14:22:27 +10:30