]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: max77693: Fix always masked MUIC interrupts
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Oct 2014 10:48:35 +0000 (12:48 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 10 Nov 2014 15:22:02 +0000 (15:22 +0000)
commit5d4c47242ce49a4960efd08a721fc9c06b965fa6
treee550be461691a6ded09c5eff61cf580120ffd92d
parent94b6c205c90b1e255dcbe40e3064d73223b890ac
mfd: max77693: Fix always masked MUIC interrupts

All interrupts coming from MUIC were ignored because interrupt source
register was masked.

The Maxim 77693 has a "interrupt source" - a separate register and interrupts
which give information about PMIC block triggering the individual
interrupt (charger, topsys, MUIC, flash LED).

By default bootloader could initialize this register to "mask all"
value. In such case (observed on Trats2 board) MUIC interrupts won't be
generated regardless of their mask status. Regmap irq chip was unmasking
individual MUIC interrupts but the source was masked

Before introducing regmap irq chip this interrupt source was unmasked,
read and acked. Reading and acking is not necessary but unmasking is.

Fixes: 27c73095be9a ("mfd: max77693: Handle IRQs using regmap")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max77693.c
include/linux/mfd/max77693-private.h