regmap: irq: Add support to clear ack registers
authorLaxminath Kasam <lkasam@codeaurora.org>
Mon, 5 Oct 2020 14:17:19 +0000 (19:47 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 5 Oct 2020 17:35:30 +0000 (18:35 +0100)
commit3a6f0fb7b8eb5ef0447da1332225b8c87ee207d0
treea9817591fd88e7100246371084e89451e17c1405
parentd05199af72cbb97b6a293b632ffdd09c4757d5fe
regmap: irq: Add support to clear ack registers

For particular codec HWs have requirement to toggle interrupt clear
register twice 0->1->0. To accommodate it, need to add one more field
(clear_ack) in the regmap_irq struct and update regmap-irq driver to
support it.

Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Link: https://lore.kernel.org/r/1601907440-13373-1-git-send-email-lkasam@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c
include/linux/regmap.h