]> git.karo-electronics.de Git - linux-beck.git/commit
mfd: twl6040: Clear the interrupt ID register before requesting IRQ
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 1 Apr 2014 13:45:01 +0000 (16:45 +0300)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:19 +0000 (08:11 +0100)
commit02d02728ea8bb33dee221d7dcfeb3022d7635927
tree51134bd51a5043d5f0cdacc893ecae2ad0263027
parentd137be00ee017bc40e6027cb66d667a2e0b450fd
mfd: twl6040: Clear the interrupt ID register before requesting IRQ

If for some reason the boot loader enabled the audpwron GPIO we will have
pending IRQs to be handled. This seams to break twl6040 for some reason
leading to non working i2c communication (i2c timeouts). Clearing the INTID
register after we requested the audpwron GPIO (and set it to low) will
ensure that the chip will operate normally in this case as well.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl6040.c