diff options
author | Maxim Kochetkov <fido_max@inbox.ru> | 2021-05-25 06:42:03 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-07 16:20:04 +0100 |
commit | bcd23f93d3984a94d64ce0b6bbfa3789c0e8ebaf (patch) | |
tree | f3183338d01ad85059cd0acfa4724b74e93c02e7 /include/linux/regmap.h | |
parent | b24412aff37c58286a0aeafc5678fbdc6a527d54 (diff) | |
download | linux-stable-bcd23f93d3984a94d64ce0b6bbfa3789c0e8ebaf.tar.gz linux-stable-bcd23f93d3984a94d64ce0b6bbfa3789c0e8ebaf.tar.bz2 linux-stable-bcd23f93d3984a94d64ce0b6bbfa3789c0e8ebaf.zip |
regmap-irq: Introduce inverted status registers support
Some interrupt controllers have inverted status register:
cleared bits is active interrupts and set bits is inactive interrupts,
so add inverted status support to the framework.
Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Link: https://lore.kernel.org/r/20210525034204.5272-1-fido_max@inbox.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index bf5a834d1774..f5f08dd0a116 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -1449,6 +1449,7 @@ struct regmap_irq_sub_irq_map { * @not_fixed_stride: Used when chip peripherals are not laid out with fixed * stride. Must be used with sub_reg_offsets containing the * offsets to each peripheral. + * @status_invert: Inverted status register: cleared bits are active interrupts. * @runtime_pm: Hold a runtime PM lock on the device when accessing it. * * @num_regs: Number of registers in each control bank. @@ -1501,6 +1502,7 @@ struct regmap_irq_chip { bool type_in_mask:1; bool clear_on_unmask:1; bool not_fixed_stride:1; + bool status_invert:1; int num_regs; |