From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 87FE7DDF8B for ; Sat, 12 Jan 2008 03:41:10 +1100 (EST) Date: Fri, 11 Jan 2008 10:38:53 -0600 (CST) From: Kumar Gala To: Benjamin Herrenschmidt Subject: RFC: Only deal with apple fix if res is memory Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Ben, Will this impact the apple fix? I'm getting some _IO cases hitting this. - k diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index d394d41..42a9dab 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c @@ -807,6 +807,7 @@ static void __devinit __pcibios_fixup_bus(struct pci_bus *bus) * their size is smaller than 1M. */ if (res->start == hose->pci_mem_offset && + res->flags & IORESOURCE_MEM && res->end < 0x100000) { printk(KERN_INFO "PCI: Closing bogus Apple Firmware"