All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: intel-gfx@lists.freedesktop.org
Cc: Ben Widawsky <ben@bwidawsk.net>
Subject: [PATCH 3/5] intel_mmio: a query for forcewake requirement
Date: Thu, 21 Feb 2013 22:05:34 -0800	[thread overview]
Message-ID: <1361513136-1706-3-git-send-email-ben@bwidawsk.net> (raw)
In-Reply-To: <1361513136-1706-1-git-send-email-ben@bwidawsk.net>

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
---
 lib/intel_mmio.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/intel_mmio.c b/lib/intel_mmio.c
index 3933080..2f0d74a 100644
--- a/lib/intel_mmio.c
+++ b/lib/intel_mmio.c
@@ -228,6 +228,12 @@ intel_register_access_fini(void)
 	mmio_data.inited--;
 }
 
+int
+intel_register_access_needs_wake(void)
+{
+	return mmio_data.key == FAKEKEY;
+}
+
 uint32_t
 intel_register_read(uint32_t reg)
 {
-- 
1.8.1.4

  parent reply	other threads:[~2013-02-22  6:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-22  6:05 [PATCH 1/5] quick_dump: say something when reg init fails Ben Widawsky
2013-02-22  6:05 ` [PATCH 2/5] intel_mmio: Allow mmio without debugfs Ben Widawsky
2013-02-22 16:49   ` Jesse Barnes
2013-02-22  6:05 ` Ben Widawsky [this message]
2013-02-22  6:05 ` [PATCH 4/5] quick_dump: add register write Ben Widawsky
2013-02-22  6:05 ` [PATCH 5/5] reg_access: Forcewake as necessary Ben Widawsky

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=1361513136-1706-3-git-send-email-ben@bwidawsk.net \
    --to=ben@bwidawsk.net \
    --cc=intel-gfx@lists.freedesktop.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.