]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mfd: sec-core: Fix IRQ handling after resume if this is not a wakeup source
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 22 Apr 2014 14:00:25 +0000 (16:00 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:22 +0000 (08:11 +0100)
commit360d15d6ef6f6e69baac6672147f16e2ac8b4c81
tree9d52ca7b76d50060f2d5cace444e81f715da2a61
parent9549b5ff001a8904372370d10be9a2f05e10eca5
mfd: sec-core: 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 sec-core 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.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sec-core.c