mfd: Delay to mask tsc irq in max8925
authorHaojian Zhuang <haojian.zhuang@marvell.com>
Tue, 27 Apr 2010 18:55:28 +0000 (14:55 -0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 27 May 2010 23:37:41 +0000 (01:37 +0200)
commit68e488d965a9055c63c0eac4ad1e6568b07e8ee1
treec577b35443981445a5f96ca5a063a943650ec0a0
parente47a3bbe4ffd4afe2b24c912598aee7ea1ecf738
mfd: Delay to mask tsc irq in max8925

There're two IRQ pins output from MAX8925. One is PMIC interrupt, the other
is TSC interrupt. But they're sharing one irq chip.

After initializing MAX8925 interrupts, unexpected TSC interrupt may occur and
it can't be cleared if touch driver isn't loaded.

Now move the operation of masking TSC interrupt behind requesting PMIC
interrupt. If touch driver isn't loaded, this interrupt is always masked.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/max8925-core.c