mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Li Shaohua <shaohua.li@intel.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH]Teach drivers don't call may-sleep routines in resume code
Date: Wed, 17 Nov 2004 11:04:04 +0800	[thread overview]
Message-ID: <1100660643.7466.9.camel@sli10-desk.sh.intel.com> (raw)

Hi,
We already found one driver (PCI link device driver) does the odd thing, so alert other drivers.

Thanks,
Shaohua

--- 2.6/Documentation/power/devices.txt.orig	2004-11-17 10:42:25.160212832 +0800
+++ 2.6/Documentation/power/devices.txt	2004-11-17 10:46:11.070869192 +0800
@@ -70,6 +70,9 @@ System devices will only be suspended wi
 after all other devices have been suspended. On resume, they will be
 resumed before any other devices, and also with interrupts disabled.
 
+*CAUTION*: The resume methods of drivers (normal devices and system devices)
+should never use any may-sleep methods, since when resume from memory (S3),
+no task is running.
 
 Runtime Power Management
 



             reply	other threads:[~2004-11-17  3:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-17  3:04 Li Shaohua [this message]
2004-11-19  1:46 ` Li Shaohua

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=1100660643.7466.9.camel@sli10-desk.sh.intel.com \
    --to=shaohua.li@intel.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.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®