linux-mips
[Top] [All Lists]

RFC: [MIPS] BCM1480HT set mips_io_port_base

To: Ralf Baechle <ralf@linux-mips.org>
Subject: RFC: [MIPS] BCM1480HT set mips_io_port_base
From: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date: Wed, 24 Feb 2010 13:47:07 -0700
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9.10
I don't see anywhere that BCM1480HT sets mips_io_port_base (but maybe
I missed it).  We *do* set bcm1480ht_controller.io_map_base, so pci_iomap()
should work, but without mips_io_port_base, I don't think inb() et al.
will work.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

diff --git a/arch/mips/pci/pci-bcm1480ht.c b/arch/mips/pci/pci-bcm1480ht.c
index 0fd0222..021e959 100644
--- a/arch/mips/pci/pci-bcm1480ht.c
+++ b/arch/mips/pci/pci-bcm1480ht.c
@@ -205,6 +205,7 @@ static int __init bcm1480ht_pcibios_init(void)
                        4 * 1024 * 1024);
        bcm1480ht_controller.io_map_base = (unsigned long)
                ioremap(A_BCM1480_PHYS_HT_IO_MATCH_BYTES, 65536);
+       set_io_port_base(bcm1480ht_controller.io_map_base);
 
        register_pci_controller(&bcm1480ht_controller);
 

<Prev in Thread] Current Thread [Next in Thread>