From: Daniel Walker <dwalker@codeaurora.org>
To: "Arve Hjønnevåg" <arve@android.com>
Cc: H Hartley Sweeten <hartleys@visionengravers.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH 1/4] arm: msm: gpio support
Date: Wed, 31 Mar 2010 07:03:02 -0700 [thread overview]
Message-ID: <1270044182.2025.0.camel@m0nster> (raw)
In-Reply-To: <d6200be21003301814m538a5902s649415d6cc7ec8fa@mail.gmail.com>
On Tue, 2010-03-30 at 18:14 -0700, Arve Hjønnevåg wrote:
> On Tue, Mar 30, 2010 at 4:58 PM, H Hartley Sweeten
> <hartleys@visionengravers.com> wrote:
> > On Tuesday, March 30, 2010 4:12 PM, Daniel Walker wrote:
> >> From: Daniel Walker <c_dwalke@quicinc.com>
> ...
> >> +
> >> +static void msm_gpio_irq_ack(unsigned int irq)
> >> +{
> >> + unsigned long irq_flags;
> >> + struct msm_gpio_chip *msm_chip = get_irq_chip_data(irq);
> >> + unsigned b;
> >> +
> >> + spin_lock_irqsave(&msm_chip->lock, irq_flags);
> >> +
> >> + b = 1U << (irq - FIRST_GPIO_IRQ - msm_chip->chip.base);
> >
> > Urk... That's a bit confusing...
> >
> > You might want to make this a macro or an inline function with some kind
> > of comment.
> >
>
> On a related note, why did you inline msm_gpio_clear_detect_status? It
> is used from two other functions.
>
You mean other places in the Android tree?
Daniel
WARNING: multiple messages have this Message-ID (diff)
From: dwalker@codeaurora.org (Daniel Walker)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] arm: msm: gpio support
Date: Wed, 31 Mar 2010 07:03:02 -0700 [thread overview]
Message-ID: <1270044182.2025.0.camel@m0nster> (raw)
In-Reply-To: <d6200be21003301814m538a5902s649415d6cc7ec8fa@mail.gmail.com>
On Tue, 2010-03-30 at 18:14 -0700, Arve Hj?nnev?g wrote:
> On Tue, Mar 30, 2010 at 4:58 PM, H Hartley Sweeten
> <hartleys@visionengravers.com> wrote:
> > On Tuesday, March 30, 2010 4:12 PM, Daniel Walker wrote:
> >> From: Daniel Walker <c_dwalke@quicinc.com>
> ...
> >> +
> >> +static void msm_gpio_irq_ack(unsigned int irq)
> >> +{
> >> + unsigned long irq_flags;
> >> + struct msm_gpio_chip *msm_chip = get_irq_chip_data(irq);
> >> + unsigned b;
> >> +
> >> + spin_lock_irqsave(&msm_chip->lock, irq_flags);
> >> +
> >> + b = 1U << (irq - FIRST_GPIO_IRQ - msm_chip->chip.base);
> >
> > Urk... That's a bit confusing...
> >
> > You might want to make this a macro or an inline function with some kind
> > of comment.
> >
>
> On a related note, why did you inline msm_gpio_clear_detect_status? It
> is used from two other functions.
>
You mean other places in the Android tree?
Daniel
next prev parent reply other threads:[~2010-03-31 14:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 23:11 [PATCH 1/4] arm: msm: gpio support Daniel Walker
2010-03-30 23:11 ` Daniel Walker
2010-03-30 23:11 ` [PATCH 2/4] arm: msm: GPIO support for HTC Dream Daniel Walker
2010-03-30 23:11 ` Daniel Walker
2010-03-30 23:11 ` [PATCH 3/4] arm: msm: trout: add trout specific gpio interrupts Daniel Walker
2010-03-30 23:11 ` Daniel Walker
2010-03-30 23:11 ` [PATCH 4/4] arm: msm: trout add mmc support Daniel Walker
2010-03-30 23:11 ` Daniel Walker
2010-03-30 23:58 ` [PATCH 1/4] arm: msm: gpio support H Hartley Sweeten
2010-03-30 23:58 ` H Hartley Sweeten
2010-03-31 1:14 ` Arve Hjønnevåg
2010-03-31 1:14 ` Arve Hjønnevåg
2010-03-31 14:03 ` Daniel Walker [this message]
2010-03-31 14:03 ` Daniel Walker
2010-03-31 21:21 ` Arve Hjønnevåg
2010-03-31 21:21 ` Arve Hjønnevåg
2010-03-31 22:53 ` Daniel Walker
2010-03-31 22:53 ` Daniel Walker
2010-04-06 13:32 ` Pavel Machek
2010-04-06 13:32 ` Pavel Machek
2010-03-31 14:12 ` Daniel Walker
2010-03-31 14:12 ` Daniel Walker
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=1270044182.2025.0.camel@m0nster \
--to=dwalker@codeaurora.org \
--cc=arve@android.com \
--cc=hartleys@visionengravers.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.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.