diff options
author | Jorge Ramirez-Ortiz | 2022-08-15 16:52:10 +0200 |
---|---|---|
committer | Patrick Delaunay | 2022-09-15 14:58:49 +0200 |
commit | 9ef530f196b78875d4048f2bdb9c6d33ce860088 (patch) | |
tree | be64b42e25048dc7d7240cfa35f314533568eb07 /drivers | |
parent | da6fe6b0630413849d74909e05368c5f4a4d4a67 (diff) |
i2c: stm32f7: fix clearing the control register
Bits should be set to 0, not 1.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/stm32f7_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index bf2a6c9b4bd..3a727e68acc 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c/stm32f7_i2c.c @@ -413,7 +413,7 @@ static int stm32_i2c_check_end_of_message(struct stm32_i2c_priv *i2c_priv) setbits_le32(®s->icr, STM32_I2C_ICR_STOPCF); /* Clear control register 2 */ - setbits_le32(®s->cr2, STM32_I2C_CR2_RESET_MASK); + clrbits_le32(®s->cr2, STM32_I2C_CR2_RESET_MASK); } return ret; |