From stern@rowland.harvard.edu Wed Aug 10 12:21:39 2005 Date: Wed, 10 Aug 2005 15:18:44 -0400 (EDT) From: Alan Stern To: Greg KH cc: Kernel development list Subject: PCI: Fix regression in pci_enable_device_bars Message-ID: This patch (as552) fixes yet another small problem recently added. If an attempt to put a PCI device back into D0 fails because the device doesn't support PCI PM, it shouldn't count as error. Without this patch the UHCI controllers on my Intel motherboard don't work. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- drivers/pci/pci.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) --- gregkh-2.6.orig/drivers/pci/pci.c 2005-08-10 14:23:35.000000000 -0700 +++ gregkh-2.6/drivers/pci/pci.c 2005-08-10 14:35:39.000000000 -0700 @@ -441,7 +441,7 @@ int err; err = pci_set_power_state(dev, PCI_D0); - if (err) + if (err < 0 && err != -EIO) return err; err = pcibios_enable_device(dev, bars); if (err < 0)