From: Ralf Baechle <ralf@linux-mips.org>
To: Alexander Clouter <alex@digriz.org.uk>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>,
linux-mips@linux-mips.org, florian@openwrt.org
Subject: Re: [PATCH] MIPS: AR7: Fix GCC 4.6.0 build error.
Date: Fri, 13 May 2011 17:30:55 +0100 [thread overview]
Message-ID: <20110513163055.GA11537@linux-mips.org> (raw)
In-Reply-To: <20110513155030.GO25017@chipmunk>
On Fri, May 13, 2011 at 04:50:30PM +0100, Alexander Clouter wrote:
> > >+ struct ar7_gpio_chip *gpch = (!ar7_is_titan())
> >
> > Parens around (!x) are not really necessary. Perhaps Ralf could
> > remove them while applying...
> >
> I'm happy to resubmit if that is preferred.
Florian who is experiencing email problems submitted an alternative patch
to me which I'm appending below and which I've just applied.
Thanks folks!
Ralf
From: Florian Fainelli <florian@openwrt.org>
Date: Fri, 13 May 2011 17:41:21 +0200
Subject: [PATCH] MIPS: AR7: Fix GPIO register size for Titan variant.
The 'size' variable contains the correct register size for both AR7
and Titan, but we never used it to ioremap the correct register size.
This problem only shows up on Titan.
Reported-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
arch/mips/ar7/gpio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/ar7/gpio.c b/arch/mips/ar7/gpio.c
index 425dfa5..a8aa1b4 100644
--- a/arch/mips/ar7/gpio.c
+++ b/arch/mips/ar7/gpio.c
@@ -326,7 +326,7 @@ int __init ar7_gpio_init(void)
}
gpch->regs = ioremap_nocache(AR7_REGS_GPIO,
- AR7_REGS_GPIO + 0x10);
+ AR7_REGS_GPIO + size);
if (!gpch->regs) {
printk(KERN_ERR "%s: failed to ioremap regs\n",
next prev parent reply other threads:[~2011-05-13 16:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-13 15:28 [PATCH] MIPS: AR7: Fix GCC 4.6.0 build error Alexander Clouter
2011-05-13 15:31 ` Sergei Shtylyov
2011-05-13 15:50 ` Alexander Clouter
2011-05-13 16:30 ` Ralf Baechle [this message]
2011-05-13 16:39 ` Ralf Baechle
2011-05-13 15:52 ` Florian Fainelli
2011-05-13 16:20 ` Jonas Gorski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110513163055.GA11537@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=alex@digriz.org.uk \
--cc=florian@openwrt.org \
--cc=linux-mips@linux-mips.org \
--cc=sshtylyov@mvista.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox