From: Rafael J. Wysocki <rjw@xxxxxxx> Add pm_dev_dbg() to asynchronous suspend and resume code paths to make the debugging of async suspend/resume easier. Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx> --- drivers/base/power/main.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/drivers/base/power/main.c =================================================================== --- linux-2.6.orig/drivers/base/power/main.c +++ linux-2.6/drivers/base/power/main.c @@ -510,6 +510,7 @@ static void async_resume(void *data, asy struct device *dev = (struct device *)data; int error; + pm_dev_dbg(dev, pm_transition, "async "); error = __device_resume(dev, pm_transition, true); if (error) pm_dev_err(dev, pm_transition, " async", error); @@ -791,6 +792,7 @@ static void async_suspend(void *data, as struct device *dev = (struct device *)data; int error; + pm_dev_dbg(dev, pm_transition, "async "); error = __device_suspend(dev, pm_transition, true); if (error) { pm_dev_err(dev, pm_transition, " async", error); _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm