pinctrl: intel: implement gpio_irq_enable
authorQi Zheng <qi.zheng@intel.com>
Wed, 16 Mar 2016 18:15:26 +0000 (02:15 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:57:52 +0000 (10:57 +0200)
commita939bb57cd4716fdae213f6cb60a626fa6d5a60a
treee89b8e75965cf3664c1b842ea894e1e3c2b21bf8
parentbf380cfa60db1f44d4884dbea0372dac5d9db633
pinctrl: intel: implement gpio_irq_enable

There is unexpected gpio interrupt after irq_enable. If not
implemeted gpio_irq_enable callback, irq_enable calls irq_unmask
instead. But if there was interrupt set before the irq_enable,
unmask it may trigger the unexpected interrupt. By implementing
the gpio_irq_enable callback, do interrupt status ack, the issue
has gone.

Signed-off-by: Qi Zheng <qi.zheng@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Qipeng Zha <qipeng.zha@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-intel.c