swsusp for ppc440

Takeharu KATO takeharu1219 at ybb.ne.jp
Wed Jul 20 23:50:13 EST 2005


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++) {






More information about the Linuxppc-embedded mailing list