diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2016-06-09 18:13:07 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-06-29 12:14:38 +0300 |
commit | 3df140d11c6dbf319f4e1bc034e202546fc5ec5c (patch) | |
tree | 9fe07cd54c75bbd504cef733c1d92e0237569bb0 /drivers/mfd/ucb1400_core.c | |
parent | ecd98ccefa1bb83865c358d96b98524bc70938a9 (diff) | |
download | linux-3df140d11c6dbf319f4e1bc034e202546fc5ec5c.tar.xz |
mfd: max77620: Mask/unmask interrupt before/after servicing it
The programming guidelines of the MAX77620 for servicing interrupt is:
1. When interrupt occurs from PMIC, mask the PMIC interrupt by
setting GLBLM.
2. Read IRQTOP and service the interrupt.
3. Once all interrupts has been checked and serviced, the interrupt
service routine un-masks the hardware interrupt line by clearing
GLBLM.
Add the pre and post interrupt service handler for mask and unmask the
global interrupt mask bit (for step 1 and 3) as callback from regmap-irq.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/ucb1400_core.c')
0 files changed, 0 insertions, 0 deletions