]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regmap: irq: Add support for chips without separate IRQ status
authorMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Thu, 22 May 2025 12:06:20 +0000 (14:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 22 May 2025 12:11:50 +0000 (13:11 +0100)
commit1c12fbdf40e17df2efc24bf2009a0c3bfa75bfa7
tree6e96cd8d1361fb4dabd328464fd373df3860a3b0
parenteb4e0298a05684f88fbd2106fc482f859f804aa6
regmap: irq: Add support for chips without separate IRQ status

Some GPIO chips allow to rise an IRQ on GPIO level changes but do not
provide an IRQ status for each separate line: only the current gpio
level can be retrieved.

Add support for these chips, emulating IRQ status by comparing GPIO
levels with the levels during the previous interrupt.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250522-mdb-max7360-support-v9-5-74fc03517e41@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c
include/linux/regmap.h