mfd: max14577: Fix IRQ handling after resume if this is not a wakeup source
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 22 Apr 2014 13:59:22 +0000 (15:59 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:23 +0000 (08:11 +0100)
commitc4f725b52cde3b82d66d54201bc97fcd539bffc8
treeac285f6939b434671840e05da44d5ce3a76f521b
parent360d15d6ef6f6e69baac6672147f16e2ac8b4c81
mfd: max14577: Fix IRQ handling after resume if this is not a wakeup source

During suspend the IRQ should be disabled even if this is not a wakeup
source. This is a proper way of fixing the IRQ handling issue during
resume (IRQ handler fails because I2C bus did not resume yet).

When device is suspended and max14577 interrupt is signaled the irq chip
will try to handle it regardless of wakeup source. Device could be woken
up by different IRQ but still the IRQ handler will try to read the
registers over I2C bus and fail because I2C bus won't be ready yet:
max14577 2-0025: Failed to read IRQ status: -5

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max14577.c
This page took 0.073174 seconds and 5 git commands to generate.