pinctrl: intel: Clear interrupt status in mask/unmask callback
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 30 Apr 2019 08:37:53 +0000 (16:37 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 May 2019 12:04:25 +0000 (15:04 +0300)
commit670784fb4ebe54434e263837390e358405031d9e
treeb934c1b90c196cc1c126e7c0c2950c1c4254ab3a
parente58926e781d81bb4efc90fada08183c3f04478de
pinctrl: intel: Clear interrupt status in mask/unmask callback

Commit a939bb57cd47 ("pinctrl: intel: implement gpio_irq_enable") was
added because clearing interrupt status bit is required to avoid
unexpected behavior.

Turns out the unmask callback also needs the fix, which can solve weird
IRQ triggering issues on I2C touchpad ELAN1200.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel.c