From: Takeharu KATO <takeharu1219@ybb.ne.jp>
To: Hiroyuki Machida <machida@sm.sony.co.jp>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: swsusp for ppc440
Date: Wed, 20 Jul 2005 22:50:13 +0900 [thread overview]
Message-ID: <42DE5695.50102@ybb.ne.jp> (raw)
In-Reply-To: <42DA05BD.3050403@sm.sony.co.jp>
Hi
> It seems to be stopped at console device.
> Do anyone point out where and how to exclude system devices
> like console and swap from device suspend procedure as
> preparation of swsusp?
>
As long as I think, what you want may be realized by changing the condition
to suspend serial device(this is written in serial8250_suspend function
in drivers/serial/8250.c, line: 2334).
Following trivial patch may help you(But I've not tried this patch on PowerPC actually, sorry).
Regards,
diff -Nupr linux-2.6.orig/drivers/serial/8250.c linux-2.6/drivers/serial/8250.c
--- linux-2.6.orig/drivers/serial/8250.c 2005-07-20 05:37:20.000000000 +0900
+++ linux-2.6/drivers/serial/8250.c 2005-07-20 22:07:36.000000000 +0900
@@ -2331,7 +2331,7 @@ static int serial8250_suspend(struct dev
{
int i;
- if (level != SUSPEND_DISABLE)
+ if ( (level != SUSPEND_DISABLE) || (state == PMSG_FREEZE) )
return 0;
for (i = 0; i < UART_NR; i++) {
next prev parent reply other threads:[~2005-07-20 13:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-17 7:16 swsusp for ppc440 Hiroyuki Machida
2005-07-20 13:50 ` Takeharu KATO [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-07-17 7:11 Hiroyuki Machida
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=42DE5695.50102@ybb.ne.jp \
--to=takeharu1219@ybb.ne.jp \
--cc=linuxppc-embedded@ozlabs.org \
--cc=machida@sm.sony.co.jp \
/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).