Files
linux-stable-mirror/include/linux
Aidan MacDonald faa87ce919 regmap-irq: Introduce config registers for irq types
Config registers provide a more uniform approach to handling irq type
registers. They are essentially an extension of the virtual registers
used by the qcom-pm8008 driver.

Config registers can be represented as a 2D array:

    config_base[0]      reg0,0      reg0,1      reg0,2      reg0,3
    config_base[1]      reg1,0      reg1,1      reg1,2      reg1,3
    config_base[2]      reg2,0      reg2,1      reg2,2      reg2,3

There are 'num_config_bases' base registers, each of which is used to
address 'num_config_regs' registers. The addresses are calculated in
the same way as for other bases. It is assumed that an irq's type is
controlled by one column of registers; that column is identified by
the irq's 'type_reg_offset'.

The set_type_config() callback is responsible for updating the config
register contents. It receives an array of buffers (each represents a
row of registers) and the index of the column to update, along with
the 'struct regmap_irq' description and requested irq type.

Buffered values are written to registers in regmap_irq_sync_unlock().
Note that the entire register contents are overwritten, which is a
minor change in behavior from type registers via 'type_base'.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20220623211420.918875-9-aidanmacdonald.0x0@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-06-29 18:13:13 +01:00
..
2022-05-22 20:44:29 +01:00
2022-05-20 15:29:00 -07:00
2018-01-01 12:40:27 -07:00
2022-06-03 06:52:57 -07:00
2019-12-11 09:12:38 +01:00
2022-04-21 07:36:56 -04:00
2022-05-19 14:08:53 -07:00
2022-05-12 10:29:41 -07:00
2021-02-03 19:05:50 +01:00
2019-06-15 12:25:49 +02:00
2022-05-22 21:03:01 +01:00
2022-06-02 10:15:05 -07:00
2022-05-24 08:41:18 -06:00
2022-05-31 12:45:10 -04:00