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, 16 Dec 2009
 03:28:54 -0700
Received: from mail1.lsil.com (mail1.lsil.com [147.145.40.21])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id nBGASOH2002812	for
 <andy.sharp@lsi.com>; Wed, 16 Dec 2009 02:28:27 -0800
Received: from psmtp.com (na3sys009amx190.postini.com [74.125.149.171])	by
 mail1.lsil.com (8.12.11/8.12.11) with SMTP id nBGASIli008205	for
 <andy.sharp@lsi.com>; Wed, 16 Dec 2009 02:28:23 -0800 (PST)
Received: from source ([78.24.191.182]) by na3sys009amx190.postini.com
 ([74.125.148.14]) with SMTP;	Wed, 16 Dec 2009 10:28:23 GMT
Received: from localhost.localdomain ([127.0.0.1]:43162 "EHLO
        eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL)        by
 eddie.linux-mips.org with ESMTP id S1493549AbZLPK2E (ORCPT
        <rfc822;andy.sharp@lsi.com>); Wed, 16 Dec 2009 11:28:04 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 16 Dec 2009 11:27:46
 +0100 (CET)
Received: from zmc.proxad.net ([212.27.53.206]:57608 "EHLO zmc.proxad.net"
        rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP        id
 S1493517AbZLPK1i (ORCPT <rfc822;linux-mips@linux-mips.org>);        Wed, 16
 Dec 2009 11:27:38 +0100
Received: from localhost (localhost [127.0.0.1])        by zmc.proxad.net
 (Postfix) with ESMTP id 4FE87341832C;        Wed, 16 Dec 2009 11:27:36 +0100
 (CET)
Received: from zmc.proxad.net ([127.0.0.1])        by localhost
 (zmc.proxad.net [127.0.0.1]) (amavisd-new, port 10024)        with ESMTP id
 An2r6S0PFLFR; Wed, 16 Dec 2009 11:27:35 +0100 (CET)
Received: from flexo.localnet (bobafett.staff.proxad.net [213.228.1.121])
        by zmc.proxad.net (Postfix) with ESMTPSA id D0DE03418277;        Wed,
 16 Dec 2009 11:27:35 +0100 (CET)
From: Florian Fainelli <ffainelli@freebox.fr>
To: Ralf Baechle <ralf@linux-mips.org>
CC: Geert Uytterhoeven <geert@linux-m68k.org>, Thomas Bogendoerfer
	<tsbogend@alpha.franken.de>, "linux-mips@linux-mips.org"
	<linux-mips@linux-mips.org>, Maxime Bizon <mbizon@freebox.fr>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Wed, 16 Dec 2009 03:29:06 -0700
Subject: Re: [PATCH 2/2] MIPS: add readl/write_be
Thread-Topic: [PATCH 2/2] MIPS: add readl/write_be
Thread-Index: Acp+OpM2jXO5+EjyS1SZ4ivonPAozA==
Message-ID: <200912161129.07023.ffainelli@freebox.fr>
References: <200912121757.56365.ffainelli@freebox.fr>
 <200912150144.04051.ffainelli@freebox.fr>
 <20091215082521.GA16778@linux-mips.org>
In-Reply-To: <20091215082521.GA16778@linux-mips.org>
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 <ffainelli@freebox.fr> [22/1] 
x-pstn-neptune: 1/1/1.00/84
x-virus-scanned: amavisd-new at 
user-agent: KMail/1.12.2 (Linux/2.6.31-16-server; KDE/4.3.2; x86_64; ; )
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

From: Florian Fainelli <ffainelli@freebox.fr>
Subject: [PATCH v3] MIPS: add readl/write_be accessors

MIPS currently lacks the readl_be and writel_be accessors
which are required by BCM63xx for OHCI and EHCI support.
Let's define them globally for MIPS. This also fixes the
compilation of the bcm63xx defconfig against USB.

Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
---
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index 436878e..65d7843 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -447,6 +447,9 @@ __BUILDIO(q, u64)
 #define readl_relaxed			readl
 #define readq_relaxed			readq
=20
+#define readl_be(addr)			be32_to_cpu(__raw_readl((__force unsigned *)(addr=
)))
+#define writel_be(val, addr)		__raw_writel(cpu_to_be32((val)), (__force un=
signed *)(addr))
+
 /*
  * Some code tests for these symbols
  */
--=20


