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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 07:58:53 +0000 (09:58 +0200)
commita19e4a1b4c63c3c3fd151ec443b395bcaeba59bd
tree03016f3c71d9d3076636acc81ec9a42efb806af7
parentcffeb9c84d20816a2173e3cfeca210c8bfa8e357
gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC

commit 102bbe34b31c9159e714432afd64458f6f3876d7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-eic-sprd.c