]> git.hungrycats.org Git - linux/commit
gpio: davinci: fix lazy disable
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Wed, 28 Aug 2024 13:32:07 +0000 (15:32 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Sep 2024 11:52:50 +0000 (13:52 +0200)
commit3360d41f4ac490282fddc3ccc0b58679aa5c065d
tree946c784c26cb1561b31ff091839bfdb6a66bd20e
parent9852d85ec9d492ebef56dc5f229416c925758edc
gpio: davinci: fix lazy disable

On a few platforms such as TI's AM69 device, disable_irq() fails to keep
track of the interrupts that happen between disable_irq() and
enable_irq() and those interrupts are missed. Use the ->irq_unmask() and
->irq_mask() methods instead of ->irq_enable() and ->irq_disable() to
correctly keep track of edges when disable_irq is called.

This solves the issue of disable_irq() not working as expected on such
platforms.

Fixes: 23265442b02b ("ARM: davinci: irq_data conversion.")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Parth Pancholi <parth.pancholi@toradex.com>
Acked-by: Keerthy <j-keerthy@ti.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240828133207.493961-1-parth105105@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-davinci.c