Alan Stern
ee49fb5dc8
USB: keep count of unsuspended children
...
This patch (as818b) simplifies autosuspend processing by keeping track
of the number of unsuspended children of each USB hub. This will
permit us to avoid a good deal of unnecessary work all the time; we
will no longer have to create a bunch of workqueue entries to carry
out autosuspend requests, only to have them fail because one of the
hub's children isn't suspended.
The basic idea is simple. There already is a usage counter in the
usb_device structure for preventing autosuspends. The patch just
increments that counter for every unsuspended child. There's only one
tricky part: When a device disconnects we need to remember whether it
was suspended at the time (leave the counter alone) or not (decrement
the counter).
Signed-off-by: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2006-12-01 14:25:52 -08:00
..
2006-10-20 10:26:40 -07:00
2006-10-06 08:53:41 -07:00
2006-10-30 12:08:41 -08:00
2006-11-15 21:18:49 -08:00
2006-11-15 21:18:49 -08:00
2006-10-04 00:30:57 -07:00
2006-11-15 21:18:49 -08:00
2006-11-15 21:18:49 -08:00
2006-11-08 18:29:23 -08:00
2006-10-21 13:35:05 -07:00
2006-10-20 10:26:40 -07:00
2006-10-05 15:10:12 +01:00
2006-10-04 07:55:32 -07:00
2006-10-14 00:49:52 -04:00
2006-10-05 15:10:12 +01:00
2006-10-03 23:01:26 +02:00
2006-10-05 15:10:12 +01:00
2006-10-04 08:31:24 -04:00
2006-10-03 23:01:26 +02:00
2006-10-20 10:26:35 -07:00
2006-10-04 19:32:09 +02:00
2006-10-11 11:14:22 -07:00
2006-10-20 10:26:35 -07:00
2006-10-17 08:18:46 -07:00
2006-10-11 11:14:21 -07:00
2006-10-10 16:15:33 -07:00
2006-10-21 13:35:05 -07:00
2006-11-03 12:27:59 -08:00
2006-10-02 07:57:14 -07:00
2006-10-03 08:04:12 -07:00
2006-10-03 08:04:12 -07:00
2006-10-11 11:14:22 -07:00
2006-11-20 08:27:08 +11:00
2006-10-11 11:14:25 -07:00
2006-10-10 15:37:20 -07:00
2006-10-04 06:45:23 -06:00
2006-10-03 08:04:16 -07:00
2006-10-23 11:01:33 -07:00
2006-10-03 08:04:16 -07:00
2006-10-21 18:37:02 +02:00
2006-10-12 15:08:51 +02:00
2006-10-11 11:14:16 -07:00
2006-10-11 11:14:18 -07:00
2006-10-11 11:14:18 -07:00
2006-10-11 11:14:18 -07:00
2006-10-11 11:14:17 -07:00
2006-10-03 08:04:10 -07:00
2006-10-19 20:53:08 +02:00
2006-10-04 15:24:27 +10:00
2006-10-02 07:57:12 -07:00
2006-10-04 07:55:28 -07:00
2006-10-03 23:01:26 +02:00
2006-10-05 15:10:12 +01:00
2006-11-08 18:29:25 -08:00
2006-11-14 09:09:27 -08:00
2006-10-05 15:10:12 +01:00
2006-10-10 16:15:34 -07:00
2006-11-21 16:16:33 -08:00
2006-11-15 21:18:49 -08:00
2006-10-04 00:31:09 -07:00
2006-10-02 07:57:22 -07:00
2006-11-20 11:47:18 -08:00
2006-10-05 15:10:12 +01:00
2006-10-05 15:10:12 +01:00
2006-10-11 11:14:23 -07:00
2006-10-05 15:10:12 +01:00
2006-10-10 15:37:22 -07:00
2006-10-04 00:31:09 -07:00
2006-10-04 07:55:12 -07:00
2006-11-08 18:29:24 -08:00
2006-10-04 00:31:09 -07:00
2006-11-05 14:11:24 -08:00
2006-10-20 10:26:37 -07:00
2006-11-26 16:27:17 -08:00
2006-10-10 15:37:22 -07:00
2006-10-11 11:14:18 -07:00
2006-10-03 08:03:41 -07:00
2006-10-20 10:26:38 -07:00
2006-11-26 19:05:22 -08:00
2006-10-01 00:39:33 -07:00
2006-10-02 07:57:16 -07:00
2006-10-31 20:40:09 -05:00
2006-10-11 23:45:23 -04:00
2006-10-11 11:14:15 -07:00
2006-10-21 13:35:06 -07:00
2006-10-20 10:26:38 -07:00
2006-10-28 11:30:50 -07:00
2006-10-11 11:14:21 -07:00
2006-11-16 11:43:38 -08:00
2006-10-04 07:55:29 -07:00
2006-10-02 07:57:20 -07:00
2006-10-11 11:14:24 -07:00
2006-10-17 08:18:43 -07:00
2006-11-28 20:59:39 -08:00
2006-10-04 00:30:54 -07:00
2006-10-20 10:26:40 -07:00
2006-10-20 10:26:40 -07:00
2006-10-11 11:14:22 -07:00
2006-10-04 07:55:30 -07:00
2006-11-25 13:28:33 -08:00
2006-10-20 10:26:38 -07:00
2006-10-28 11:30:50 -07:00
2006-10-05 15:10:12 +01:00
2006-10-18 11:36:12 -07:00
2006-11-02 18:55:48 -05:00
2006-11-15 21:18:52 -08:00
2006-10-21 13:35:05 -07:00
2006-10-06 08:53:41 -07:00
2006-11-13 07:40:42 -08:00
2006-10-03 08:03:40 -07:00
2006-11-03 12:27:58 -08:00
2006-10-03 23:01:26 +02:00
2006-10-02 07:57:13 -07:00
2006-10-05 15:10:12 +01:00
2006-10-02 07:57:15 -07:00
2006-10-04 13:27:26 -05:00
2006-10-17 08:18:43 -07:00
2006-10-04 07:55:31 -07:00
2006-10-05 15:10:12 +01:00
2006-10-28 11:30:54 -07:00
2006-10-04 07:55:14 -07:00
2006-10-11 23:59:37 -07:00
2006-10-05 15:10:12 +01:00
2006-10-11 01:45:31 -04:00
2006-10-04 07:55:13 -07:00
2006-10-10 16:15:34 -07:00
2006-10-04 07:55:32 -07:00
2006-11-25 13:28:34 -08:00
2006-11-26 16:27:17 -08:00
2006-10-04 07:55:30 -07:00
2006-10-03 08:03:40 -07:00
2006-10-11 11:14:21 -07:00
2006-11-06 01:46:23 -08:00
2006-10-05 15:10:12 +01:00
2006-10-28 11:30:54 -07:00
2006-10-18 20:36:48 -07:00
2006-10-08 12:32:36 -07:00
2006-10-06 08:53:40 -07:00
2006-10-18 19:55:22 -07:00
2006-10-03 08:04:06 -07:00
2006-10-02 07:57:14 -07:00
2006-10-04 19:32:09 +02:00
2006-11-03 12:27:56 -08:00
2006-10-02 07:57:23 -07:00
2006-10-21 18:37:01 +02:00
2006-12-01 14:25:52 -08:00
2006-10-04 07:55:12 -07:00
2006-10-14 00:44:23 -03:00
2006-11-13 07:40:42 -08:00
2006-10-02 07:57:13 -07:00
2006-10-30 12:08:40 -08:00
2006-10-20 10:26:35 -07:00
2006-10-09 14:20:38 -07:00
2006-10-04 00:31:09 -07:00