public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Linus Walleij <linus.walleij@stericsson.com>,
	Grant Likely <grant.likely@secretlab.ca>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2 v2][resend] gpio: pcf857x: enable gpio_to_irq() support
Date: Thu, 14 Jun 2012 16:23:23 +0900	[thread overview]
Message-ID: <20120614072322.GC22007@linux-sh.org> (raw)
In-Reply-To: <877gvaqsfz.wl%kuninori.morimoto.gx@renesas.com>

On Thu, Jun 14, 2012 at 12:10:59AM -0700, Kuninori Morimoto wrote:
> +	for (i = 0; i < gpio->chip.ngpio; i++)
> +		if (change & BIT(i))
> +			generic_handle_irq(irq_find_mapping(gpio->irq_domain, i));
> +
You can probably get away with using for_each_set_bit() as well, which
would simplify this a bit.

Also, do you not have to worry about masking the parent IRQ while
iterating through the dispatch loop?

  reply	other threads:[~2012-06-14  7:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <877gw2uis5.wl%kuninori.morimoto.gx@renesas.com>
2012-06-14  4:57 ` [PATCH 0/2][resend] gpio: pcf857x: enable gpio_to_irq() Kuninori Morimoto
2012-06-14  4:58   ` [PATCH 1/2][resend] gpio: pcf857x: share 8/16 bit access functions Kuninori Morimoto
2012-07-05 12:57     ` Linus Walleij
2012-06-14  4:58   ` [PATCH 2/2][resend] gpio: pcf857x: enable gpio_to_irq() support Kuninori Morimoto
2012-06-14  6:15     ` Paul Mundt
2012-06-14  7:06       ` Kuninori Morimoto
2012-06-14  7:10         ` [PATCH 2/2 v2][resend] " Kuninori Morimoto
2012-06-14  7:23           ` Paul Mundt [this message]
2012-06-14  7:59             ` Kuninori Morimoto
2012-06-15  2:40               ` [PATCH 2/2 v3][resend] " Kuninori Morimoto
2012-07-05 13:00                 ` 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=20120614072322.GC22007@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=grant.likely@secretlab.ca \
    --cc=kuninori.morimoto.gx@gmail.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox