gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 10 Apr 2019 07:47:54 +0000 (15:47 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Apr 2019 13:39:48 +0000 (15:39 +0200)
commit102bbe34b31c9159e714432afd64458f6f3876d7
tree06afa04ccd32c4521c26a8b56af2c62ec7e28b37
parent79a3aaa7b82e3106be97842dedfd8429248896e6
gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC

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

Thus this patch fixes the issue.

Fixes: 25518e024e3a ("gpio: Add Spreadtrum EIC driver support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-eic-sprd.c