From: Greg KH <greg@kroah.com>
To: Nickolai Zeldovich <kolya@MIT.EDU>
Cc: linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: Re: [PATCH] report which device failed to suspend
Date: Fri, 28 May 2004 14:08:41 -0700 [thread overview]
Message-ID: <20040528210841.GA10366@kroah.com> (raw)
In-Reply-To: <Pine.GSO.4.55L.0405271835210.24218@scrubbing-bubbles.mit.edu>
On Thu, May 27, 2004 at 06:36:16PM -0400, Nickolai Zeldovich wrote:
> 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);
> +
As pointed out when Andrew forwarded this to me, this is the incorrect
way to do this, as -EAGAIN is valid to return from suspend().
I've put this check in the proper place in my trees.
thanks,
greg k-h
prev parent reply other threads:[~2004-05-28 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-27 22:36 [PATCH] report which device failed to suspend Nickolai Zeldovich
2004-05-28 21:08 ` Greg KH [this message]
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=20040528210841.GA10366@kroah.com \
--to=greg@kroah.com \
--cc=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.