[PATCH 10/10] gpio: pcie-idio-24: Fix COS_ENABLE_RISING bit definition
From: Lee Jones
Date: Thu Dec 03 2026 - 15:57:38 EST
IDIO_24_COS_ENABLE uses bits 0 through 3 for rising-edge IRQ enable
and bits 4 through 7 for falling-edge IRQ enable. COS_ENABLE_RISING
was mistakenly defined as BIT(1) instead of BIT(0), shifting rising
masks onto bits 1 through 4 and colliding with bank 0's falling-edge
enable bit.
Define COS_ENABLE_RISING as BIT(0).
Fixes: 1a200a396617 ("gpio: pcie-idio-24: Migrate to the regmap API")
Closes: https://sashiko.dev/#/bug/linux-edc9fc3f-4844-4c16-94ba-28edaaa120c9
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
---
drivers/gpio/gpio-pcie-idio-24.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-pcie-idio-24.c b/drivers/gpio/gpio-pcie-idio-24.c
index 55a7f7653982..c9cc0b243fe7 100644
--- a/drivers/gpio/gpio-pcie-idio-24.c
+++ b/drivers/gpio/gpio-pcie-idio-24.c
@@ -71,7 +71,7 @@
#define CONTROL_REG_OUT_MODE BIT(1)
-#define COS_ENABLE_RISING BIT(1)
+#define COS_ENABLE_RISING BIT(0)
#define COS_ENABLE_FALLING BIT(4)
#define COS_ENABLE_BOTH (COS_ENABLE_RISING | COS_ENABLE_FALLING)
--
2.56.1.911.g883d8bcb20-goog