]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Allow device drivers to use dpm_wait()
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 27 Jan 2010 22:47:38 +0000 (23:47 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 26 Feb 2010 19:39:11 +0000 (20:39 +0100)
commit0eed5d72f921316ff3e89b4338d53a62451db007
tree90020be3264ff98bad2f14759127a2d9693673d8
parente82f3c66e449b6ed300981a7fe9ffc8b5420b8eb
PM: Allow device drivers to use dpm_wait()

There are some dependencies between devices (in particular, between
EHCI USB controllers and their OHCI/UHCI siblings) which are not
reflected by the structure of the device tree.  With synchronous
suspend and resume these dependencies are taken into accout
automatically, because the devices in question are always registered
in the right order, but to meet these constraints with asynchronous
suspend and resume the drivers of these devices will need to use
dpm_wait() in their suspend/resume routines, so introduce a helper
function allowing them to do that.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c
include/linux/pm.h