RFC: [MIPS] BCM1480HT set mips_io_port_base

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>

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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux