]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: sprd: Fix incorrect irq type setting for the async EIC
authorNeo Hou <neo.hou@unisoc.com>
Wed, 16 Jan 2019 05:06:14 +0000 (13:06 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 23 Jan 2019 16:24:01 +0000 (17:24 +0100)
commit2e49ed4984fd9e706774db9907672eb3e5cb76d7
tree0caadc7312af7355dbcf397e37bd1c70bf1ec72f
parent51e2829b52df6bc66d1656dd69e3da43312a0192
gpio: sprd: Fix incorrect irq type setting for the async EIC

When setting async EIC as IRQ_TYPE_EDGE_BOTH type, we missed to set the
SPRD_EIC_ASYNC_INTMODE register to 0, which means detecting edge signals.

Thus this patch fixes the issue.

Fixes: c0ff3483b6ec ("gpio: Add Spreadtrum EIC driver support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Neo Hou <neo.hou@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-eic-sprd.c