public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Tom Lyon <pugs@cisco.com>
To: rjw@sisk.pl, linux-pm@lists.linux-foundation.org
Subject: question about driver's runtime_suspend
Date: Fri, 3 Sep 2010 15:20:19 -0700	[thread overview]
Message-ID: <201009031520.19452.pugs@cisco.com> (raw)

Hi. I am looking at supporting the new PM stuff in my VFIO "driver" - which 
allows user level drivers for PCI* devices.

When runtime_suspend is invoked, is it allowed to sleep while determining 
whether the device can be suspended?  If not, does returning -EAGAIN mean that 
it will be called again after some interval? 

I would like to notify the user level that a suspend is desired, and then wait 
for it to tell the vfio driver whether or not the suspend is OK.

Thanks for any help.

             reply	other threads:[~2010-09-03 22:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 22:20 Tom Lyon [this message]
2010-09-04  1:37 ` question about driver's runtime_suspend Alan Stern

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=201009031520.19452.pugs@cisco.com \
    --to=pugs@cisco.com \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rjw@sisk.pl \
    /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