Skip to content

Commit

Permalink
[PATCH] PCI: Fix regression in pci_enable_device_bars
Browse files Browse the repository at this point in the history
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 <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Sep 8, 2005
1 parent 95a6296 commit 11f3859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ pci_enable_device_bars(struct pci_dev *dev, int bars)
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)
Expand Down

0 comments on commit 11f3859

Please sign in to comment.