Received: from milmhbs1.lsil.com (147.145.21.209) by coscas01.lsi.com
 (172.21.36.60) with Microsoft SMTP Server id 8.1.393.1; Wed, 24 Feb 2010
 13:47:52 -0700
Received: from mail2.lsil.com (mail2.lsil.com [147.145.40.22])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id o1OKlpko020578	for
 <andy.sharp@lsi.com>; Wed, 24 Feb 2010 12:47:51 -0800
Received: from psmtp.com (na3sys009amx190.postini.com [74.125.149.171])	by
 mail2.lsil.com (8.12.11/8.12.11) with SMTP id o1OKgq32024868	for
 <andy.sharp@lsi.com>; Wed, 24 Feb 2010 12:42:52 -0800 (PST)
Received: from source ([78.24.191.182]) by na3sys009amx190.postini.com
 ([74.125.148.14]) with SMTP;	Wed, 24 Feb 2010 12:47:50 PST
Received: from localhost.localdomain ([127.0.0.1]:58525 "EHLO
        eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL)        by
 eddie.linux-mips.org with ESMTP id S1491882Ab0BXUri (ORCPT
        <rfc822;andy.sharp@lsi.com>); Wed, 24 Feb 2010 21:47:38 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 24 Feb 2010 21:47:20
 +0100 (CET)
Received: from g4t0015.houston.hp.com ([15.201.24.18]:37984 "EHLO
        g4t0015.houston.hp.com" rhost-flags-OK-OK-OK-OK)        by
 eddie.linux-mips.org with ESMTP id S1491856Ab0BXUrP (ORCPT
        <rfc822;linux-mips@linux-mips.org>); Wed, 24 Feb 2010 21:47:15 +0100
Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27])
        by g4t0015.houston.hp.com (Postfix) with ESMTP id 034A98199;
        Wed, 24 Feb 2010 20:47:09 +0000 (UTC)
Received: from ldl (ldl.fc.hp.com [15.11.146.30])        by
 g4t0018.houston.hp.com (Postfix) with ESMTP id A72361011D;        Wed, 24 Feb
 2010 20:47:08 +0000 (UTC)
Received: from localhost (ldl.fc.hp.com [127.0.0.1])        by ldl (Postfix)
 with ESMTP id 7E5E0CF0097;        Wed, 24 Feb 2010 13:47:08 -0700 (MST)
Received: from ldl ([127.0.0.1])        by localhost (ldl.fc.hp.com
 [127.0.0.1]) (amavisd-new, port 10024)        with ESMTP id Ei15nWSvjWq9;
 Wed, 24 Feb 2010 13:47:08 -0700 (MST)
Received: from tigger.helgaas (lart.fc.hp.com [15.11.146.31])        by ldl
 (Postfix) with ESMTP id 69776CF0095;        Wed, 24 Feb 2010 13:47:08 -0700
 (MST)
From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Ralf Baechle <ralf@linux-mips.org>
CC: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	"linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Wed, 24 Feb 2010 13:47:07 -0700
Subject: RFC: [MIPS] BCM1480HT set mips_io_port_base
Thread-Topic: [MIPS] BCM1480HT set mips_io_port_base
Thread-Index: Acq1kqI2nFaXc6CISNy4AwYDoqhvdg==
Message-ID: <201002241347.07685.bjorn.helgaas@hp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AuthSource: coscas01.lsi.com
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-scanned-by: MIMEDefang 2.39
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c 
x-pstn-addresses: from <bjorn.helgaas@hp.com> [22/1] 
x-pstn-neptune: 0/0/0.00/0
user-agent: KMail/1.9.10
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

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 =3D (unsigned long)
 		ioremap(A_BCM1480_PHYS_HT_IO_MATCH_BYTES, 65536);
+	set_io_port_base(bcm1480ht_controller.io_map_base);
=20
 	register_pci_controller(&bcm1480ht_controller);
=20

