]> git.karo-electronics.de Git - karo-tx-linux.git/commit
firewire: fw-ohci: ignore failure of pci_set_power_state (fix suspend regression)
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 6 Sep 2007 07:50:30 +0000 (09:50 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 7 Sep 2007 16:44:35 +0000 (18:44 +0200)
commit5511142870046a7bed947d51ec9b320856ee120a
tree288105167ab620dddca35e35b20a4c94431387ca
parentb21010ed6498391c0f359f2a89c907533fe07fec
firewire: fw-ohci: ignore failure of pci_set_power_state (fix suspend regression)

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>
drivers/firewire/fw-ohci.c