]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: qcom: Add irq_enable callback for msm gpio
authorSrinivas Ramana <sramana@codeaurora.org>
Tue, 25 Jun 2019 14:14:46 +0000 (19:44 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Jul 2019 08:25:53 +0000 (10:25 +0200)
commit5e5f2611b18e434a790ac41cd1a3bb011aa6d8d8
tree63e9c33fe4dcbae9667870c7558c6cbca7d14254
parent4495c6cb47a4dc2a39df7dcbbc5d72dac4d609ff
pinctrl: qcom: Add irq_enable callback for msm gpio

Introduce the irq_enable callback which will be same as irq_unmask
except that it will also clear the status bit before unmask.

This will help in clearing any erroneous interrupts that would
have got latched when the interrupt is not in use.

There may be devices like UART which can use the same gpio line
for data rx as well as a wakeup gpio when in suspend. The data that
was flowing on the line may latch the interrupt and when we enable
the interrupt before going to suspend, this would trigger the
unexpected interrupt. This change helps clearing the interrupt
so that these unexpected interrupts gets cleared.

Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Link: https://lore.kernel.org/r/1561472086-23360-1-git-send-email-neeraju@codeaurora.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c