[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdYj1+_J+-EN6QQOJzWzXNB_3N6hPPfa1sqzERZb8gsdLw@mail.gmail.com>
Date: Sat, 7 Oct 2017 13:18:22 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Grygorii Strashko <grygorii.strashko@...com>
Cc: Tony Lindgren <tony@...mide.com>,
Santosh Shilimkar <ssantosh@...nel.org>,
Linux-OMAP <linux-omap@...r.kernel.org>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Ladislav Michl <ladis@...ux-mips.org>
Subject: Re: [RESEND PATCH] gpio: omap: Fix lost edge interrupts
On Tue, Oct 3, 2017 at 6:17 PM, Grygorii Strashko
<grygorii.strashko@...com> wrote:
> Now acking of edge irqs happens the following way:
> - omap_gpio_irq_handler
> - "isr" = read irq status
> - omap_clear_gpio_irqbank(bank, isr_saved & ~level_mask);
> ^ clear edge status, so irq can be accepted
> - loop while "isr"
> generic_handle_irq()
> - handle_edge_irq()
> - desc->irq_data.chip->irq_ack(&desc->irq_data);
> - omap_gpio_ack_irq()
> it might be that at this moment edge IRQ was triggered again and it will be
> cleared and IRQ will be lost.
>
> Use handle_simple_irq and clear edge interrupts early without disabling them in
> omap_gpio_irq_handler to avoid loosing interrupts.
>
> [1] https://marc.info/?l=linux-omap&m=149004465313534&w=2
> Signed-off-by: Grygorii Strashko <grygorii.strashko@...com>
> Signed-off-by: Ladislav Michl <ladis@...ux-mips.org>
Patch applied for fixes.
I guess it is the right thing to do?
Other maintainers need to tell me if I should hold it back.
Yours,
Linus Walleij
Powered by blists - more mailing lists