]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: eic: sprd: Fix the incorrect EIC offset when toggling
authorBruce Chen <bruce.chen@unisoc.com>
Mon, 16 Sep 2019 09:56:56 +0000 (17:56 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 1 Oct 2019 09:50:40 +0000 (11:50 +0200)
commit9074134065350bfbbef6322f976bc50556bd5bf7
tree45ba4868f2272cf1d7bd6f87d47230a3cb3043cd
parent9cd29dddbed6bb7528f1396ff56e5bc9817fbd19
gpio: eic: sprd: Fix the incorrect EIC offset when toggling

When toggling the level trigger to emulate the edge trigger, the
EIC offset is incorrect without adding the corresponding bank index,
thus fix it.

Fixes: 842d9a4e7566 ("gpio: eic: Add edge trigger emulation for EIC")
Cc: stable@vger.kernel.org
Signed-off-by: Bruce Chen <bruce.chen@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