]> www.infradead.org Git - users/dwmw2/linux.git/commit
gpio: tqmx86: store IRQ trigger type and unmask status separately
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Thu, 30 May 2024 10:20:01 +0000 (12:20 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 3 Jun 2024 12:13:13 +0000 (14:13 +0200)
commit08af509efdf8dad08e972b48de0e2c2a7919ea8b
tree694c7dec83682d033030ce0fdefac5ff0cfdc200
parent9d6a811b522ba558bcb4ec01d12e72a0af8e9f6e
gpio: tqmx86: store IRQ trigger type and unmask status separately

irq_set_type() should not implicitly unmask the IRQ.

All accesses to the interrupt configuration register are moved to a new
helper tqmx86_gpio_irq_config(). We also introduce the new rule that
accessing irq_type must happen while locked, which will become
significant for fixing EDGE_BOTH handling.

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