From: Ben Dooks <ben-linux@fluff.org>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: [RFC] SM501: Call fb suspend function during suspend and resume.
Date: Tue, 10 Jul 2007 10:01:24 +0100 [thread overview]
Message-ID: <20070710090124.GA3628@fluff.org.uk> (raw)
I belive the following patch to be correct:
Call the fb_set_suspend() over suspend and resume.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Index: linux-2.6.21-quilt/drivers/video/sm501fb.c
===================================================================
--- linux-2.6.21-quilt.orig/drivers/video/sm501fb.c 2007-05-24 14:58:43.000000000 +0100
+++ linux-2.6.21-quilt/drivers/video/sm501fb.c 2007-05-24 15:06:24.000000000 +0100
@@ -28,6 +28,7 @@
#include <linux/wait.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
+#include <linux/console.h>
#include <asm/io.h>
#include <asm/uaccess.h>
@@ -1697,6 +1698,10 @@ static int sm501fb_suspend_fb(struct sm5
/* blank the relevant interface to ensure unit power minimised */
(par->ops.fb_blank)(FB_BLANK_POWERDOWN, fbi);
+ acquire_console_sem();
+ fb_set_suspend(fbi, 1);
+ release_console_sem();
+
return 0;
err_nocursor:
@@ -1732,6 +1737,10 @@ static void sm501fb_resume_fb(struct sm5
memcpy_toio(par->cursor.k_addr, par->store_cursor,
par->cursor.size);
+ acquire_console_sem();
+ fb_set_suspend(fbi, 0);
+ release_console_sem();
+
vfree(par->store_fb);
vfree(par->store_cursor);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
next reply other threads:[~2007-07-10 9:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 9:01 Ben Dooks [this message]
2007-07-13 12:57 ` [RFC] SM501: Call fb suspend function during suspend and resume Antonino A. Daplas
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=20070710090124.GA3628@fluff.org.uk \
--to=ben-linux@fluff.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).