]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: OMAP1: ams-delta: fix deferred_fiq handler
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 2 May 2018 18:32:03 +0000 (20:32 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:56:21 +0000 (14:56 +0200)
commit2fde63c42072e3f3ed74e86221ccb12676820478
tree38b37d0d9a40ace21b940473d32e700f5baae0c5
parent437868158e04c69f4e4efde56115e332a59be6a6
ARM: OMAP1: ams-delta: fix deferred_fiq handler

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit baf64250b4a513bf4ac226fd938692dc1836f4f6 ]

The deferred_fiq handler used to limit hardware operations to IRQ
unmask only, relying on gpio-omap assigned handler performing the ACKs.
Since commit 80ac93c27441 ("gpio: omap: Fix lost edge interrupts") this
is no longer the case as handle_edge_irq() has been replaced with
handle_simmple_irq() which doesn't touch the hardware.

Add single ACK operation per each active IRQ pin to the handler. While
being at it, move unmask operation out of irq_counter loop so it is
also called only once for each active IRQ pin.

Fixes: 80ac93c27441 ("gpio: omap: Fix lost edge interrupts")
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/mach-omap1/ams-delta-fiq.c