mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix regression in pci_enable_device_bars
@ 2005-08-10 19:18 Alan Stern
  2005-08-10 21:37 ` patch pci-cleanup-return-values-fix.patch added to gregkh-2.6 tree gregkh
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Stern @ 2005-08-10 19:18 UTC (permalink / raw)
  To: Greg KH; +Cc: Kernel development list

Greg:

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.

Alan Stern



Signed-off-by: Alan Stern <stern@rowland.harvard.edu>

Index: usb-2.6/drivers/pci/pci.c
===================================================================
--- usb-2.6.orig/drivers/pci/pci.c
+++ usb-2.6/drivers/pci/pci.c
@@ -441,7 +441,7 @@ pci_enable_device_bars(struct pci_dev *d
 	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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-10 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-10 19:18 [PATCH] Fix regression in pci_enable_device_bars Alan Stern
2005-08-10 21:37 ` patch pci-cleanup-return-values-fix.patch added to gregkh-2.6 tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®