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

* patch pci-cleanup-return-values-fix.patch added to gregkh-2.6 tree
  2005-08-10 19:18 [PATCH] Fix regression in pci_enable_device_bars Alan Stern
@ 2005-08-10 21:37 ` gregkh
  0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2005-08-10 21:37 UTC (permalink / raw)
  To: stern, greg, gregkh, linux-kernel


This is a note to let you know that I've just added the patch titled

     Subject: PCI: Fix regression in pci_enable_device_bars

to my gregkh-2.6 tree.  Its filename is

     pci-cleanup-return-values-fix.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/

Patches currently in gregkh-2.6 which might be from stern@rowland.harvard.edu are

driver/driver-link-device-and-class.patch
pci/pci-cleanup-return-values-fix.patch
usb/usb-gadget-centrialize-numbers.patch
usb/usb-storage-fix-something.patch
usb/usb-storage-rearrange-stuff.patch
usb/usb-storage-01.patch
usb/usb-storage-02.patch
usb/usb-storage-03.patch
usb/usb-storage-05.patch
usb/usb-remove-URB_ASYNC_UNLINK.patch


>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 <stern@rowland.harvard.edu>
To: Greg KH <greg@kroah.com>
cc: Kernel development list <linux-kernel@vger.kernel.org>
Subject: PCI: Fix regression in pci_enable_device_bars
Message-ID: <Pine.LNX.4.44L0.0508101516220.4485-100000@iolanthe.rowland.org>

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>

---
 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)

^ 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®