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-12-01 14:23:32 -08:00
2006-11-03 12:27:57 -08:00
2006-10-11 11:14:25 -07:00
2006-11-20 13:06:19 -08:00
2006-12-01 14:23:32 -08:00
2006-12-01 14:23:33 -08:00
2006-12-01 14:23:33 -08:00
2006-10-03 22:31:37 +02:00
2006-10-17 08:18:42 -07:00
2006-11-03 12:27:58 -08:00
2006-11-16 14:30:26 -08:00
2006-10-17 08:18:42 -07:00