regmap-irq: Add handle_mask_sync() callback
[sfrench/cifs-2.6.git] / include / linux / regmap.h
index 5a56fc55ebd7f59aefa81153d978b66b93ee2eb7..a3bc695bcca09b7fa42415e852667939fc8c379d 100644 (file)
@@ -1580,6 +1580,8 @@ struct regmap_irq_chip_data;
  *                  before regmap_irq_handler process the interrupts.
  * @handle_post_irq: Driver specific callback to handle interrupt from device
  *                  after handling the interrupts in regmap_irq_handler().
+ * @handle_mask_sync: Callback used to handle IRQ mask syncs. The index will be
+ *                   in the range [0, num_regs)
  * @set_type_virt:   Driver specific callback to extend regmap_irq_set_type()
  *                  and configure virt regs. Deprecated, use @set_type_config
  *                  callback and config registers instead.
@@ -1641,6 +1643,9 @@ struct regmap_irq_chip {
 
        int (*handle_pre_irq)(void *irq_drv_data);
        int (*handle_post_irq)(void *irq_drv_data);
+       int (*handle_mask_sync)(struct regmap *map, int index,
+                               unsigned int mask_buf_def,
+                               unsigned int mask_buf, void *irq_drv_data);
        int (*set_type_virt)(unsigned int **buf, unsigned int type,
                             unsigned long hwirq, int reg);
        int (*set_type_config)(unsigned int **buf, unsigned int type,