Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e7c40012b84f670ba57fe4a3f453ddecc8813e9b
Commit:     e7c40012b84f670ba57fe4a3f453ddecc8813e9b
Parent:     bb5db29aa0379f0f3ef857a3a3715f17261c611b
Author:     Arnd Bergmann <[EMAIL PROTECTED]>
AuthorDate: Tue Jun 5 04:14:39 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Jun 7 11:44:40 2007 +1000

    [POWERPC] Fix pci_setup_phb_io_dynamic for pci_iomap
    
    We had a problem on a system with only dynamically allocated
    PCI buses (using of_pci_phb_driver) in combination with libata.
    This setup ended up having no "primary" phb, which means
    that pci_io_base never got initialized and all IO port
    numbers are 64 bit numbers, which is larger than the
    PIO_MASK limit.
    
    Signed-off-by: Arnd Bergmann <[EMAIL PROTECTED]>
    Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/kernel/of_platform.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/of_platform.c 
b/arch/powerpc/kernel/of_platform.c
index d501c23..d454f61 100644
--- a/arch/powerpc/kernel/of_platform.c
+++ b/arch/powerpc/kernel/of_platform.c
@@ -433,7 +433,7 @@ static int __devinit of_pci_phb_probe(struct of_device *dev,
         * Note also that we don't do ISA, this will also be fixed with a
         * more massive rework.
         */
-       pci_setup_phb_io(phb, 0);
+       pci_setup_phb_io(phb, pci_io_base == 0);
 
        /* Init pci_dn data structures */
        pci_devs_phb_init_dynamic(phb);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to