Linux MIPS Architecture development
 help / color / mirror / Atom feed
* RFC: [MIPS] BCM1480HT set mips_io_port_base
@ 2010-02-24 20:47 Bjorn Helgaas
  2010-02-24 22:00 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2010-02-24 20:47 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Thomas Bogendoerfer, linux-mips

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-24 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 20:47 RFC: [MIPS] BCM1480HT set mips_io_port_base Bjorn Helgaas
2010-02-24 22:00 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox