]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: max77693: Use proper regmap for handling MUIC interrupts
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Oct 2014 08:22:01 +0000 (10:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2014 17:23:09 +0000 (09:23 -0800)
commitcc463599ca1e8fcebf929cfb411dfed305de2327
tree8676fb71e97b992049ea2e5274dbd85fac6ddb7c
parent06f09373f6502ed8c67f4bbc50a20f5163d5c298
mfd: max77693: Use proper regmap for handling MUIC interrupts

commit 43fc9396cac3f7498e07a22e6a987b911462fa58 upstream.

Interrupts coming from Maxim77693 MUIC block (MicroUSB Interface
Controller) were not handled at all because wrong regmap was used for
MUIC's regmap_irq_chip.

The MUIC component of Maxim 77693 uses different I2C address thus second
regmap is created and used by max77693 extcon driver. The registers for
MUIC interrupts are also in that block and should be handled by that
second regmap.

However the regmap irq chip for MUIC was configured with default regmap
which could not read MUIC registers.

Fixes: 342d669c1ee4 ("mfd: max77693: Handle IRQs using regmap")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/max77693.c