[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdbP=x_PZfxF+J6RRqEg2jHOrP+KfmrWe=oNvpxqM9zw-Q@mail.gmail.com>
Date: Tue, 18 Oct 2022 10:42:35 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Horatiu Vultur <horatiu.vultur@...rochip.com>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
andy.shevchenko@...il.com, michael@...le.cc,
UNGLinuxDriver@...rochip.com
Subject: Re: [PATCH] pinctrl: ocelot: Fix incorrect trigger of the interrupt.
On Tue, Oct 18, 2022 at 9:05 AM Horatiu Vultur
<horatiu.vultur@...rochip.com> wrote:
> The interrupt controller can detect only link changes. So in case an
> external device generated a level based interrupt, then the interrupt
> controller detected correctly the first edge. But the problem was that
> the interrupt controller was detecting also the edge when the interrupt
> was cleared. So it would generate another interrupt.
> The fix for this is to clear the second interrupt but still check the
> interrupt line status.
>
> Fixes: c297561bc98a ("pinctrl: ocelot: Fix interrupt controller")
> Signed-off-by: Horatiu Vultur <horatiu.vultur@...rochip.com>
Patch applied for fixes!
Yours,
Linus Walleij
Powered by blists - more mailing lists