From: Andrew Morton <akpm@linux-foundation.org>
To: Philipp Zabel <philipp.zabel@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>, Samuel Ortiz <sameo@openedhand.com>
Subject: Re: [PATCH] mfd: fix a bug in the asic3 irq demux code
Date: Wed, 2 Jul 2008 10:53:03 -0700 [thread overview]
Message-ID: <20080702105303.990e6395.akpm@linux-foundation.org> (raw)
In-Reply-To: <1215020573.24941.1.camel@localhost.localdomain>
On Wed, 02 Jul 2008 19:42:53 +0200 Philipp Zabel <philipp.zabel@gmail.com> wrote:
> Wrong irq numbers were given to desc->handle_irq, which
> on some devices caused endless loops (asic3_irq_demux
> calling itself, basically).
>
> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
> ---
> drivers/mfd/asic3.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c
> index 8e41130..59ec9c6 100644
> --- a/drivers/mfd/asic3.c
> +++ b/drivers/mfd/asic3.c
> @@ -308,7 +308,7 @@ static void asic3_irq_demux(unsigned int irq, struct irq_desc *desc)
> for (i = ASIC3_NUM_GPIOS; i < ASIC3_NR_IRQS; i++) {
> /* They start at bit 4 and go up */
> if (status & (1 << (i - ASIC3_NUM_GPIOS + 4))) {
> - desc = irq_desc + + i;
> + desc = irq_desc + asic->irq_base + i;
> desc->handle_irq(asic->irq_base + i,
> desc);
> }
hm, I seem to have a pile of mfd patches. I'll look to offload those
on Samuel.
Samuel, will you be setting up an MFD git tree for linux-next? (You
should, please).
next prev parent reply other threads:[~2008-07-02 17:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 17:42 [PATCH] mfd: fix a bug in the asic3 irq demux code Philipp Zabel
2008-07-02 17:53 ` Andrew Morton [this message]
2008-07-02 18:22 ` Samuel Ortiz
2008-07-02 18:57 ` Andrew Morton
2008-07-02 21:18 ` Samuel Ortiz
2008-07-02 18:59 ` Andrew Morton
2008-07-02 21:20 ` Samuel Ortiz
2008-07-03 9:25 ` Samuel Ortiz
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=20080702105303.990e6395.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=philipp.zabel@gmail.com \
--cc=sameo@openedhand.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