[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-stable-commits
Subject: patch firewire-fw-ohci-ignore-failure-of-pci_set_power_state.patch queued to -stable tree
From: <gregkh () suse ! de>
Date: 2007-09-21 22:18:20
Message-ID: 20070921221756.C25E41449FC0 () imap ! suse ! de
[Download RAW message or body]
This is a note to let you know that we have just queued up the patch titled
Subject: firewire: fw-ohci: ignore failure of pci_set_power_state (fix suspend regression)
to the 2.6.22-stable tree. Its filename is
firewire-fw-ohci-ignore-failure-of-pci_set_power_state.patch
A git repo of this tree can be found at
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
From stable-bounces@linux.kernel.org Tue Sep 11 06:09:07 2007
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
Date: Tue, 11 Sep 2007 14:59:17 +0200 (CEST)
Subject: firewire: fw-ohci: ignore failure of pci_set_power_state (fix suspend regression)
To: stable@kernel.org
Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Message-ID: <tkrat.27649d5116b81d43@s5r6.in-berlin.de>
Content-Disposition: INLINE
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
Minor regression since 2.6.22-rc1: If the experimental firewire-ohci
driver instead of ohci1394 was loaded, iBook G3 and older PowerBooks
refused to suspend.
Same as commit 5511142870046a7bed947d51ec9b320856ee120a plus format
string touch-ups from 8a8cea2734808522f02941ea16125810ee42c9c7,
"firewire: missing newline in printk". Original patch description:
Fixes (papers over) "Sleep problems with kernels >= 2.6.21 on powerpc",
http://lkml.org/lkml/2007/8/25/155. The issue is that the FireWire
controller's pci_dev.current_state of iBook G3 and presumably older
PowerBooks is still in PCI_UNKNOWN instead of PCI_D0 when the firewire
driver's .suspend method is called.
Like it was suggested earlier in http://lkml.org/lkml/2006/10/24/13, we
do not fail .suspend anymore if pci_set_power_state failed.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- linux-2.6.22.6.orig/drivers/firewire/fw-ohci.c
+++ linux-2.6.22.6/drivers/firewire/fw-ohci.c
@@ -1934,14 +1934,12 @@ static int pci_suspend(struct pci_dev *p
free_irq(pdev->irq, ohci);
err = pci_save_state(pdev);
if (err) {
- fw_error("pci_save_state failed with %d", err);
+ fw_error("pci_save_state failed with %d\n", err);
return err;
}
err = pci_set_power_state(pdev, pci_choose_state(pdev, state));
- if (err) {
- fw_error("pci_set_power_state failed with %d", err);
- return err;
- }
+ if (err)
+ fw_error("pci_set_power_state failed with %d\n", err);
return 0;
}
@@ -1955,7 +1953,7 @@ static int pci_resume(struct pci_dev *pd
pci_restore_state(pdev);
err = pci_enable_device(pdev);
if (err) {
- fw_error("pci_enable_device failed with %d", err);
+ fw_error("pci_enable_device failed with %d\n", err);
return err;
}
--
Stefan Richter
-=====-=-=== =--= -=-==
http://arcgraph.de/sr/
_______________________________________________
stable mailing list
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable
Patches currently in stable-queue which might be from stefanr@s5r6.in-berlin.de are
queue-2.6.22/firewire-fw-ohci-ignore-failure-of-pci_set_power_state.patch
-
To unsubscribe from this list: send the line "unsubscribe stable-commits" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic