mfd: max8997: Disable interrupt handling for suspend/resume cycle
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 5 Sep 2018 14:36:06 +0000 (16:36 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Oct 2018 07:58:34 +0000 (08:58 +0100)
commitc1aaaa1cb7c82fe53463fba4928405fddcc4ea27
treedbd515f2d147ea8c7bb2b164021ec26758d6864a
parentefddff27c886e729a7f84a7205bd84d7d4af7336
mfd: max8997: Disable interrupt handling for suspend/resume cycle

Disable IRQs during suspend/resume cycle to ensure handling of wakeup
interrupts (i.e. RTC wake alarm) after max8997_resume(). This way it can
be properly handled when I2C bus is finally available. This pattern is
also used in other MAX PMIC MFD drivers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max8997.c