From: Nickolai Zeldovich <kolya@MIT.EDU>
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org
Subject: [PATCH] report which device failed to suspend
Date: Thu, 27 May 2004 18:36:16 -0400 (EDT) [thread overview]
Message-ID: <Pine.GSO.4.55L.0405271835210.24218@scrubbing-bubbles.mit.edu> (raw)
When your machine stops suspending all of a sudden, a patch such as the
one below is helpful to diagnose which device or driver is misbehaving and
causing the suspend sequence to fail.
-- kolya
--- drivers/base/power/suspend.c 2004/05/27 22:09:47 1.1
+++ drivers/base/power/suspend.c 2004/05/27 22:28:36
@@ -42,6 +42,10 @@
if (dev->bus && dev->bus->suspend && !dev->power.power_state)
error = dev->bus->suspend(dev,state);
+ if (error)
+ printk(KERN_ERR "Could not suspend device %s: error %d\n",
+ kobject_name(&dev->kobj), error);
+
return error;
}
next reply other threads:[~2004-05-27 22:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-27 22:36 Nickolai Zeldovich [this message]
2004-05-28 21:08 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.4.55L.0405271835210.24218@scrubbing-bubbles.mit.edu \
--to=kolya@mit.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®