Commit 11f3859b authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] PCI: Fix regression in pci_enable_device_bars

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: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 95a62965
...@@ -445,7 +445,7 @@ pci_enable_device_bars(struct pci_dev *dev, int bars) ...@@ -445,7 +445,7 @@ pci_enable_device_bars(struct pci_dev *dev, int bars)
int err; int err;
err = pci_set_power_state(dev, PCI_D0); err = pci_set_power_state(dev, PCI_D0);
if (err) if (err < 0 && err != -EIO)
return err; return err;
err = pcibios_enable_device(dev, bars); err = pcibios_enable_device(dev, bars);
if (err < 0) if (err < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment