From d2f6e5b6fa95b376cc87f1babcbeb6087ddd09e4 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 23 Apr 2026 14:41:18 -0700 Subject: [PATCH] gpio-latch-mikrotik: fix logic error latch_enabled should be false when unlocking. it's set to true when locking. Probably copy/paste bug. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/23150 Signed-off-by: Hauke Mehrtens --- target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c b/target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c index d8b5603a580..00395985465 100644 --- a/target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c +++ b/target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c @@ -44,7 +44,7 @@ static void gpio_latch_unlock(struct gpio_latch_chip *glc, bool disable) mutex_unlock(&glc->latch_mutex); if (disable) - glc->latch_enabled = true; + glc->latch_enabled = false; mutex_unlock(&glc->mutex); }