Skip to contentSkip to conversation

Fix suspend/resume with yenta

PATCH Pavel Machek 1 participant 1 message Jul 8, 2003 Pcmcia

lore
Share & tools
lore
#0 lore raw

Hi!

This fixes suspend/resume with yenta active. Please apply,

(it is trivial after you look at pcmcia_socket_dev_suspend ;-).

Pavel

drivers/pcmcia/yenta_socket.c +4 -1
@@ -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);
 }
 
 
Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]