]> err.no Git - linux-2.6/commit
[PATCH] Driver Core: pm diagnostics update, check for errors
authorDavid Brownell <david-b@pacbell.net>
Mon, 9 May 2005 15:07:00 +0000 (08:07 -0700)
committerGreg KH <gregkh@suse.de>
Tue, 17 May 2005 21:54:54 +0000 (14:54 -0700)
commit82428b62aa6294ea640c7e920a9224ecaf46db65
treef9e9bfd1f86f739ee16968378057060417f52bb4
parentff0d2f90fdc4b564d47a7c26b16de81a16cfa28e
[PATCH] Driver Core: pm diagnostics update, check for errors

This patch includes various tweaks in the messaging that appears during
system pm state transitions:

  * Warn about certain illegal calls in the device tree, like resuming
    child before parent or suspending parent before child.  This could
    happen easily enough through sysfs, or in some cases when drivers
    use device_pm_set_parent().

  * Be more consistent about dev_dbg() tracing ... do it for resume() and
    shutdown() too, and never if the driver doesn't have that method.

  * Say which type of system sleep state is being entered.

Except for the warnings, these only affect debug messaging.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/power/resume.c
drivers/base/power/shutdown.c
drivers/base/power/suspend.c
kernel/power/main.c