linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PM] Make yenta work
@ 2003-07-28 13:48 Michael Frank
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Frank @ 2003-07-28 13:48 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Russell King, linux-kernel

Russel has a patch pending which saves the (128) PCI registers as well. This is needed on my hardware for example

Regards
Michael


-- 
Powered by linux-2.6-test1-mm1. Compiled with gcc-2.95-3 - mature and rock solid

2.4/2.6 kernel testing: ACPI PCI interrupt routing, keyboard failure with
		        ACPI, PCI IRQ sharing and swsusp
2.6 kernel testing: PCMCIA yenta_socket, Suspend to RAM with ACPI S1-S3. 

More info on swsusp: http://sourceforge.net/projects/swsusp/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PM] Make yenta work
  2003-08-05  1:04 ` Patrick Mochel
@ 2003-08-05  8:06   ` Russell King
  0 siblings, 0 replies; 4+ messages in thread
From: Russell King @ 2003-08-05  8:06 UTC (permalink / raw)
  To: Patrick Mochel; +Cc: Pavel Machek, kernel list

On Mon, Aug 04, 2003 at 06:04:37PM -0700, Patrick Mochel wrote:
> I believe I saw a patch from Russell get in over the weekend that did 
> this, right? 

Correct.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PM] Make yenta work
  2003-07-26 22:59 Pavel Machek
@ 2003-08-05  1:04 ` Patrick Mochel
  2003-08-05  8:06   ` Russell King
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Mochel @ 2003-08-05  1:04 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list


> This makes yenta work, and its really trivial...
> 								Pavel
> 
> Index: linux/drivers/pcmcia/yenta_socket.c
> ===================================================================
> --- linux.orig/drivers/pcmcia/yenta_socket.c	2003-07-22 13:39:42.000000000 +0200
> +++ linux/drivers/pcmcia/yenta_socket.c	2003-07-17 22:22:58.000000000 +0200
> @@ -899,7 +899,10 @@
>  
>  static int yenta_dev_suspend (struct pci_dev *dev, u32 state)
>  {
> -	return pcmcia_socket_dev_suspend(&dev->dev, state, 0);
> +	/* FIXME: We should really let devices to act on *all* levels :-(.
> +	   If you put something else than SUSPEND_SAVE_STATE,
> +	   pcmcia_socket_dev_suspend() will simply do nothing due to its check. */
> +	return pcmcia_socket_dev_suspend(&dev->dev, state, SUSPEND_SAVE_STATE);
>  }

I believe I saw a patch from Russell get in over the weekend that did 
this, right? 


	-pat


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PM] Make yenta work
@ 2003-07-26 22:59 Pavel Machek
  2003-08-05  1:04 ` Patrick Mochel
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2003-07-26 22:59 UTC (permalink / raw)
  To: kernel list, Patrick Mochel

Hi!

This makes yenta work, and its really trivial...
								Pavel

Index: linux/drivers/pcmcia/yenta_socket.c
===================================================================
--- linux.orig/drivers/pcmcia/yenta_socket.c	2003-07-22 13:39:42.000000000 +0200
+++ linux/drivers/pcmcia/yenta_socket.c	2003-07-17 22:22:58.000000000 +0200
@@ -899,7 +899,10 @@
 
 static int yenta_dev_suspend (struct pci_dev *dev, u32 state)
 {
-	return pcmcia_socket_dev_suspend(&dev->dev, state, 0);
+	/* FIXME: We should really let devices to act on *all* levels :-(.
+	   If you put something else than SUSPEND_SAVE_STATE,
+	   pcmcia_socket_dev_suspend() will simply do nothing due to its check. */
+	return pcmcia_socket_dev_suspend(&dev->dev, state, SUSPEND_SAVE_STATE);
 }
 
 

-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-05  8:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-28 13:48 [PM] Make yenta work Michael Frank
  -- strict thread matches above, loose matches on Subject: below --
2003-07-26 22:59 Pavel Machek
2003-08-05  1:04 ` Patrick Mochel
2003-08-05  8:06   ` Russell King

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).