devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: Chandrabhanu Mahapatra <cmahapatra@ti.com>
Cc: grant.likely@secretlab.ca, linus.walleij@stericsson.com,
	rob.herring@calxeda.com, linux-kernel@vger.kernel.org,
	devicetree-discuss@lists.ozlabs.org, leed.aguilar@ti.com
Subject: Re: [PATCH 4/4] gpio/pca953x: register the device irq using appropriate api's
Date: Thu, 12 Jul 2012 00:11:39 +0200	[thread overview]
Message-ID: <CACRpkdbKbQGKGsqnSKB5NgVG+yuBfHSLSS_bYWWJVXe1_tCByA@mail.gmail.com> (raw)
In-Reply-To: <d0bd829760aba6c8e686f3b864b3831aa6bdcaa1.1341925681.git.cmahapatra@ti.com>

On Tue, Jul 10, 2012 at 3:36 PM, Chandrabhanu Mahapatra
<cmahapatra@ti.com> wrote:

> From: Leed Aguilar <leed.aguilar@ti.com>
>
> Here, the implementation of registration of requested IRQs has been corrected
> with appropiate api's. The gpio number is requested through gpio_request_one()
> API and conversion of the gpio to irq is done using the gpio_to_irq() API.
>
> Change-Id: I964145e2a280d6553ea2c05ea8049810a1983930

Delete that.

> Signed-off-by: Leed Aguilar <leed.aguilar@ti.com>
> Signed-off-by: Chandrabhanu Mahapatra <cmahapatra@ti.com>
> ---
>  drivers/gpio/gpio-pca953x.c |    8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
> index c3ca7d8..27486da 100644
> --- a/drivers/gpio/gpio-pca953x.c
> +++ b/drivers/gpio/gpio-pca953x.c
> @@ -509,7 +509,13 @@ static int pca953x_irq_setup(struct pca953x_chip *chip,
>  #endif
>                 }
>
> -               ret = request_threaded_irq(client->irq,
> +               ret = gpio_request_one(client->irq, GPIOF_IN, "pca953x");

Not that it's really related to this one patch, but why is a GPIO number named
"irq" in client->irq??

> +               if (ret) {
> +                       dev_err(&client->dev, "gpio request failure\n");
> +                       goto out_failed;
> +               }
> +
> +               ret = request_threaded_irq(gpio_to_irq(client->irq),

It gets ever more confused as you're seemingly converting an IRQ to
an IRQ. Can we rename this variable in a separate patch?

Apart from this it looks good, but do I dare apply it without applying
3/4 (that needs ACK:ing)?

Yours,
Linus Walleij

  reply	other threads:[~2012-07-11 22:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 13:31 [PATCH 0/4] Extend TCA6424 support Chandrabhanu Mahapatra
2012-07-10 13:35 ` [PATCH 1/4] GPIO: PCA953X: Increase size of invert variable to support 24 bit Chandrabhanu Mahapatra
2012-07-11 22:02   ` Linus Walleij
2012-07-10 13:35 ` [PATCH 2/4] gpio/pca953x: increase variables size to support 24 bit of data Chandrabhanu Mahapatra
2012-07-11 22:04   ` Linus Walleij
2012-07-10 13:36 ` [PATCH 3/4] OMAP: Define TCA6424 max number of possible IRQs Chandrabhanu Mahapatra
2012-07-11 22:08   ` Linus Walleij
     [not found]     ` <CAF0AtAs8euY79y-JmD8Bk4oX-8+gwPKsr_JJin+853EesrUTcg@mail.gmail.com>
     [not found]       ` <CAF0AtAs8euY79y-JmD8Bk4oX-8+gwPKsr_JJin+853EesrUTcg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-14 20:44         ` Linus Walleij
2012-07-10 13:36 ` [PATCH 4/4] gpio/pca953x: register the device irq using appropriate api's Chandrabhanu Mahapatra
2012-07-11 22:11   ` Linus Walleij [this message]
2012-07-23  6:52     ` Mahapatra, Chandrabhanu
2012-07-28  6:05 ` [PATCH V1 0/3] Extend TCA6424 support Chandrabhanu Mahapatra
2012-07-28  6:07   ` [PATCH V1 1/3] GPIO: PCA953X: Increase size of invert variable to support 24 bit Chandrabhanu Mahapatra
     [not found]     ` <a7d63a5023b354c3f0ac8b1aa181b57f03db199c.1343026861.git.cmahapatra-l0cyMroinI0@public.gmane.org>
2012-08-04 23:38       ` Linus Walleij
2012-07-28  6:07   ` [PATCH V1 2/3] gpio/pca953x: increase variables size to support 24 bit of data Chandrabhanu Mahapatra
2012-07-28  6:10   ` [PATCH V1 3/3] OMAP: Define TCA6424 max number of possible IRQs Chandrabhanu Mahapatra
     [not found]     ` <03736c1b42a7e28fc0b47aabd5c0f019edb1baf2.1343026861.git.cmahapatra-l0cyMroinI0@public.gmane.org>
2012-07-29 15:49       ` Linus Walleij
2012-08-04 23:39   ` [PATCH V1 0/3] Extend TCA6424 support Linus Walleij

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=CACRpkdbKbQGKGsqnSKB5NgVG+yuBfHSLSS_bYWWJVXe1_tCByA@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=cmahapatra@ti.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=leed.aguilar@ti.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rob.herring@calxeda.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;
as well as URLs for NNTP newsgroup(s).