diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-11-15 15:57:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 14:04:22 -0800 |
commit | c08512c761e7b9eaaab0e9167a389393f268e93c (patch) | |
tree | 6837bfb8e93915dae46a63a863275f90428f82f0 /lib/random32.c | |
parent | fcc4a01eb8661226e80632327673f67bf6a5840b (diff) | |
download | kernel_samsung_smdk4412-c08512c761e7b9eaaab0e9167a389393f268e93c.zip kernel_samsung_smdk4412-c08512c761e7b9eaaab0e9167a389393f268e93c.tar.gz kernel_samsung_smdk4412-c08512c761e7b9eaaab0e9167a389393f268e93c.tar.bz2 |
USB: improve uses of usb_mark_last_busy
This patch (as1434) cleans up the uses of usb_mark_last_busy() in
usbcore. The function will be called when a device is resumed and
whenever a usage count is decremented. A call that was missing from
the hub driver is added: A hub is used whenever one of its ports gets
suspended (this prevents hubs from suspending immediately after their
last child).
In addition, the call to disable autosuspend support for new devices
by default is moved from usb_detect_quirks() (where it doesn't really
belong) into usb_new_device() along with all the other runtime-PM
initializations. Finally, an extra pm_runtime_get_noresume() is added
to prevent new devices from autosuspending while they are being
registered.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/random32.c')
0 files changed, 0 insertions, 0 deletions