]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f10b18418f735c6e7d62ac5ff9025fa9f95e51a
treedbd515f2d147ea8c7bb2b164021ec26758d6864a
parent4d7ddc6141a6ce852018d38efaa3296c0f276111
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