]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 23 May 2014 09:34:07 +0000 (10:34 +0100)
commite157a1b618f3473d19e0ff5916e48b127e1d021c
tree0e0d9c6a5becdcaf6d5755d7ac14b6945be9d40f
parentfd20fa52713583d6b54e2d61427b3301dece9954
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