From ba4b9819f577a304bb81c9ca8f08d2a261ab1335 Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Mon, 16 Jun 2025 09:25:26 +0200 Subject: [PATCH] drivers: i2c: stm32: disable error interrupts for RTIO Add missing disable of I2C error interrupt when disabling I2C interrupts in STM32 v1 and v2 RTIO drivers. Signed-off-by: Etienne Carriere --- drivers/i2c/i2c_ll_stm32_v1_rtio.c | 1 + drivers/i2c/i2c_ll_stm32_v2_rtio.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/i2c/i2c_ll_stm32_v1_rtio.c b/drivers/i2c/i2c_ll_stm32_v1_rtio.c index 3c0728d79d6..96906e2eed3 100644 --- a/drivers/i2c/i2c_ll_stm32_v1_rtio.c +++ b/drivers/i2c/i2c_ll_stm32_v1_rtio.c @@ -38,6 +38,7 @@ static void i2c_stm32_disable_transfer_interrupts(const struct device *dev) LL_I2C_DisableIT_RX(i2c); LL_I2C_DisableIT_EVT(i2c); LL_I2C_DisableIT_BUF(i2c); + LL_I2C_DisableIT_ERR(i2c); } static void i2c_stm32_enable_transfer_interrupts(const struct device *dev) diff --git a/drivers/i2c/i2c_ll_stm32_v2_rtio.c b/drivers/i2c/i2c_ll_stm32_v2_rtio.c index 519066afad7..7f8093cd366 100644 --- a/drivers/i2c/i2c_ll_stm32_v2_rtio.c +++ b/drivers/i2c/i2c_ll_stm32_v2_rtio.c @@ -37,6 +37,7 @@ static void i2c_stm32_disable_transfer_interrupts(const struct device *dev) LL_I2C_DisableIT_STOP(i2c); LL_I2C_DisableIT_NACK(i2c); LL_I2C_DisableIT_TC(i2c); + LL_I2C_DisableIT_ERR(i2c); } static void i2c_stm32_enable_transfer_interrupts(const struct device *dev)