mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
regmap-irq: Add handle_mask_sync() callback
Provide a public callback handle_mask_sync() that drivers can use when they have more complex IRQ masking logic. The default implementation is regmap_irq_handle_mask_sync(), used if the chip doesn't provide its own callback. Cc: Mark Brown <broonie@kernel.org> Signed-off-by: William Breathitt Gray <william.gray@linaro.org> Link: https://lore.kernel.org/r/e083474b3d467a86e6cb53da8072de4515bd6276.1669100542.git.william.gray@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
acdce7aa7a
commit
69af4bcaa0
@@ -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,
|
||||
|
Reference in New Issue
Block a user