[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZ_YYhSn1FpxOGX5V9HrcMwQ553RWAbtDq56KPv8FCEzg@mail.gmail.com>
Date: Sat, 11 Jul 2020 23:09:49 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Mark Tomlinson <mark.tomlinson@...iedtelesis.co.nz>
Cc: Ray Jui <ray.jui@...adcom.com>,
bcm-kernel-feedback-list <bcm-kernel-feedback-list@...adcom.com>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
Scott Branden <sbranden@...adcom.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] pinctrl: nsp: Set irq handler based on trig type
On Fri, Jul 3, 2020 at 3:18 AM Mark Tomlinson
<mark.tomlinson@...iedtelesis.co.nz> wrote:
> Rather than always using handle_simple_irq() as the gpio_irq_chip
> handler, set a more appropriate handler based on the IRQ trigger type
> requested. This is important for level triggered interrupts which need
> to be masked during handling. Also, fix the interrupt acknowledge so
> that it clears only one interrupt instead of all interrupts which are
> currently active. Finally there is no need to clear the interrupt during
> the interrupt handler, since the edge-triggered handler will do that for
> us.
>
> Signed-off-by: Mark Tomlinson <mark.tomlinson@...iedtelesis.co.nz>
> ---
> Changes in v2:
> - Don't perform unnecessary acks.
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists