]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Apply irq_mask_cur before handling max77686 interrupts
authorYadwinder Singh Brar <yadi.brar01@gmail.com>
Thu, 5 Jul 2012 03:58:21 +0000 (09:28 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 9 Jul 2012 13:13:42 +0000 (15:13 +0200)
commit7dd3761bc4ae42addc3aa5d11395e28dfa210efb
tree03fb53bc9e0d81d0be0b1ed761fed6b4258cbd06
parent14eb1673c691e57886b13dcdb794971c42ea49d5
mfd: Apply irq_mask_cur before handling max77686 interrupts

According to TRM, though we mask the interrupts in interrupt-mask register,
interrupt source-register still provide the status of the masked interrupts.
So we should apply irq_mask_cur to read interrupt source-register value before
handling.

Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/max77686-irq.c