diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-24 10:41:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-07 15:29:45 -0400 |
commit | 0c00c50b41a9a6ee83eb16fb5c6c22e5115391b8 (patch) | |
tree | 12a30d730032a46fac0793fea2ba30ef900b4d4f /include/linux/regmap.h | |
parent | 40052ca0c243d101cfadd65936f60ef81df10b02 (diff) |
regmap: irq: Enable devices for runtime PM while handling interrupts
Some devices need to have a runtime PM reference while handling interrupts
to ensure that the register I/O is available. Support this with a flag in
the chip.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
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 7f7e00df3adf..9c4c9c673f38 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
@@ -285,6 +285,7 @@ struct regmap_irq { | |||
285 | * @ack_base: Base ack address. If zero then the chip is clear on read. | 285 | * @ack_base: Base ack address. If zero then the chip is clear on read. |
286 | * @wake_base: Base address for wake enables. If zero unsupported. | 286 | * @wake_base: Base address for wake enables. If zero unsupported. |
287 | * @irq_reg_stride: Stride to use for chips where registers are not contiguous. | 287 | * @irq_reg_stride: Stride to use for chips where registers are not contiguous. |
288 | * @runtime_pm: Hold a runtime PM lock on the device when accessing it. | ||
288 | * | 289 | * |
289 | * @num_regs: Number of registers in each control bank. | 290 | * @num_regs: Number of registers in each control bank. |
290 | * @irqs: Descriptors for individual IRQs. Interrupt numbers are | 291 | * @irqs: Descriptors for individual IRQs. Interrupt numbers are |
@@ -299,6 +300,7 @@ struct regmap_irq_chip { | |||
299 | unsigned int ack_base; | 300 | unsigned int ack_base; |
300 | unsigned int wake_base; | 301 | unsigned int wake_base; |
301 | unsigned int irq_reg_stride; | 302 | unsigned int irq_reg_stride; |
303 | bool runtime_pm; | ||
302 | 304 | ||
303 | int num_regs; | 305 | int num_regs; |
304 | 306 | ||