[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1224574343.7654.244.camel@pasglop>
Date: Tue, 21 Oct 2008 18:32:23 +1100
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Ingo Molnar <mingo@...e.hu>
Cc: Yinghai Lu <yinghai@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
David Brownell <dbrownell@...rs.sourceforge.net>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linuxppc-dev list <linuxppc-dev@...abs.org>
Subject: Re: Bug in "genirq: record trigger type"
On Tue, 2008-10-21 at 09:28 +0200, Ingo Molnar wrote:
> From: Chris Friesen <cfriesen@...tel.com>
> Date: Mon, 20 Oct 2008 12:41:58 -0600
> Subject: [PATCH] genirq: fix set_irq_type() when recording trigger type
>
> In set_irq_type() we want to pass the type rather than the current
> interrupt state.
>
> Signed-off-by: Chris Friesen <cfriesen@...tel.com>
> Signed-off-by: Ingo Molnar <mingo@...e.hu>
Acked-by: Benjamin Herrenschmidt <benh@...nel.crashing.org>
> ---
> kernel/irq/chip.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
> index 4895fde..3de6ea3 100644
> --- a/kernel/irq/chip.c
> +++ b/kernel/irq/chip.c
> @@ -127,7 +127,7 @@ int set_irq_type(unsigned int irq, unsigned int type)
> return 0;
>
> spin_lock_irqsave(&desc->lock, flags);
> - ret = __irq_set_trigger(desc, irq, flags);
> + ret = __irq_set_trigger(desc, irq, type);
> spin_unlock_irqrestore(&desc->lock, flags);
> return ret;
> }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists