USB: Implement PM FREEZE and PRETHAW
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 4 May 2007 15:51:25 +0000 (11:51 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:29:46 +0000 (16:29 -0700)
commit4d461095ef6967324bc5da5d65d23ad27fc604f9
tree7b510d94bd7e1351e997504276ccd6e5973b2127
parent784a6e1cc406b7ef48476a1f38b83fc551f5616f
USB: Implement PM FREEZE and PRETHAW

This patch (as884) finally implements the time-saving semantics
possible with the Power Management FREEZE and PRETHAW events.  Their
proper handling requires only that devices be quiesced, with
interrupts and DMA turned off; non-root USB devices don't actually
need to be put in a suspended state.  The patch checks and avoids
doing the suspend call when possible.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c
drivers/usb/core/generic.c