Browse Source

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 <etienne.carriere@st.com>
pull/91792/head
Etienne Carriere 3 weeks ago committed by Benjamin Cabé
parent
commit
ba4b9819f5
  1. 1
      drivers/i2c/i2c_ll_stm32_v1_rtio.c
  2. 1
      drivers/i2c/i2c_ll_stm32_v2_rtio.c

1
drivers/i2c/i2c_ll_stm32_v1_rtio.c

@ -38,6 +38,7 @@ static void i2c_stm32_disable_transfer_interrupts(const struct device *dev) @@ -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)

1
drivers/i2c/i2c_ll_stm32_v2_rtio.c

@ -37,6 +37,7 @@ static void i2c_stm32_disable_transfer_interrupts(const struct device *dev) @@ -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)

Loading…
Cancel
Save