From: philippe.langlais@stericsson.com (Philippe Langlais)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] U6715 gpio platform driver This driver is U6XXX platform generic
Date: Fri, 9 Jul 2010 17:16:52 +0200 [thread overview]
Message-ID: <4C373D64.9050905@stericsson.com> (raw)
In-Reply-To: <20100709115748.GD22845@n2100.arm.linux.org.uk>
Hi,
Ok, Now I use the IOMEM macro like omap do, it's better.
Just after I send the three U6715 impacted patches.
Thanks
On 07/09/10 13:57, Russell King - ARM Linux wrote:
> On Mon, Jul 05, 2010 at 09:59:00AM +0200, Philippe Langlais wrote:
>
>> +static void _set_gpio_direction(struct gpio_bank *bank, int gpio, int is_input)
>> +{
>> + u32 reg = bank->gpio_base;
>>
> Virtual addresses are pointers not integers and should be of type
> void __iomem *. It's unfortunate that writel() and friends don't
> warn about this - but making them do so ends up generating more
> code with some GCC versions.
>
> As I've already suggested, you can get around adding lots of casts
> to void __iomem * to the code by defining an IOMEM macro, which you
> can then use when you define things like GPIOA_PINS_REG.
>
next prev parent reply other threads:[~2010-07-09 15:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 7:58 New U6715 patch series after Russell King review Philippe Langlais
2010-07-05 7:58 ` [PATCH 1/5] U6/U6715 ARM architecture files Philippe Langlais
2010-07-05 7:58 ` [PATCH 2/5] U6715 clocks gating management U6 clock generic driver & U6715 cgu clock specific Philippe Langlais
2010-07-05 7:59 ` [PATCH 3/5] U6715 gpio platform driver This driver is U6XXX platform generic Philippe Langlais
2010-07-09 11:57 ` Russell King - ARM Linux
2010-07-09 15:16 ` Philippe Langlais [this message]
2010-07-05 7:59 ` [PATCH 4/5] U6715 platform serial driver It's a generic driver for all U6XXX platform Philippe Langlais
2010-07-05 7:59 ` [PATCH 5/5] U6715 8250 serial like driver Philippe Langlais
-- strict thread matches above, loose matches on Subject: below --
2010-08-05 12:28 Patch series For U6/U6715 platform support Philippe Langlais
2010-08-05 12:28 ` [PATCH 3/5] U6715 gpio platform driver This driver is U6XXX platform generic Philippe Langlais
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=4C373D64.9050905@stericsson.com \
--to=philippe.langlais@stericsson.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.