]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 23 May 2014 09:34:02 +0000 (10:34 +0100)
commit48e1ef629304957f0899d88ef91f25b7452e0754
tree5445028a72aa093b1abbdf1d4c3e05b9c7b6e37d
parent5fa13dd719ac66487a3888a3d9aaf34aa9c9341e
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