Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933591AbYFGB2z (ORCPT ); Fri, 6 Jun 2008 21:28:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760539AbYFGBKJ (ORCPT ); Fri, 6 Jun 2008 21:10:09 -0400 Received: from sous-sol.org ([216.99.217.87]:42591 "EHLO sous-sol.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760898AbYFGBKH (ORCPT ); Fri, 6 Jun 2008 21:10:07 -0400 Message-Id: <20080607010619.349634333@sous-sol.org> References: <20080607010215.358296706@sous-sol.org> User-Agent: quilt/0.46-1 Date: Fri, 06 Jun 2008 18:02:46 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Gary Hade , Greg KH , Jan Beulich , "Junichi Nomura" , Ingo Molnar , Thomas Gleixner Subject: [patch 31/50] Revert "PCI: remove default PCI expansion ROM memory allocation" Content-Disposition: inline; filename=revert-pci-remove-default-pci-expansion-rom-memory-allocation.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2137 Lines: 72 -stable review patch. If anyone has any objections, please let us know. --------------------- From: Linus Torvalds upstream commit: 8d539108560ec121d59eee05160236488266221c This reverts commit 9f8daccaa05c14e5643bdd4faf5aed9cc8e6f11e, which was reported to break X startup (xf86-video-ati-6.8.0). See http://bugs.freedesktop.org/show_bug.cgi?id=15523 for details. Reported-by: Laurence Withers Cc: Gary Hade Cc: Greg KH Cc: Jan Beulich Cc: "Jun'ichi Nomura" Cc: Andrew Morton Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Linus Torvalds [cebbert@redhat.com: backport, remove first hunk to make port easier] [chrisw@sous-sol.org: add back first hunk] Signed-off-by: Chris Wright --- arch/x86/pci/common.c | 17 ----------------- 1 file changed, 17 deletions(-) --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -130,19 +130,6 @@ static void __devinit pcibios_fixup_ghos } } -static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev) -{ - struct resource *rom_r = &dev->resource[PCI_ROM_RESOURCE]; - - if (rom_r->parent) - return; - if (rom_r->start) - /* we deal with BIOS assigned ROM later */ - return; - if (!(pci_probe & PCI_ASSIGN_ROMS)) - rom_r->start = rom_r->end = rom_r->flags = 0; -} - /* * Called after each bus is probed, but before its children * are examined. @@ -150,12 +137,8 @@ static void __devinit pcibios_fixup_devi void __devinit pcibios_fixup_bus(struct pci_bus *b) { - struct pci_dev *dev; - pcibios_fixup_ghosts(b); pci_read_bridge_bases(b); - list_for_each_entry(dev, &b->devices, bus_list) - pcibios_fixup_device_resources(dev); } /* -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/