gpio: tqmx86: fix broken IRQ_TYPE_EDGE_BOTH interrupt type
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Thu, 30 May 2024 10:20:02 +0000 (12:20 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 3 Jun 2024 12:13:13 +0000 (14:13 +0200)
commit90dd7de4ef7ba584823dfbeba834c2919a4bb55b
tree2176b8090f97f94171293849ae101613219b64b9
parent08af509efdf8dad08e972b48de0e2c2a7919ea8b
gpio: tqmx86: fix broken IRQ_TYPE_EDGE_BOTH interrupt type

The TQMx86 GPIO controller only supports falling and rising edge
triggers, but not both. Fix this by implementing a software both-edge
mode that toggles the edge type after every interrupt.

Fixes: b868db94a6a7 ("gpio: tqmx86: Add GPIO from for this IO controller")
Co-developed-by: Gregor Herburger <gregor.herburger@tq-group.com>
Signed-off-by: Gregor Herburger <gregor.herburger@tq-group.com>
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Link: https://lore.kernel.org/r/515324f0491c4d44f4ef49f170354aca002d81ef.1717063994.git.matthias.schiffer@ew.tq-group.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-tqmx86.c