i2c: stm32f7: fix clearing the control register
PATCH v2 1/2 i2c: stm32f7: fix clearing the control register
Bits should be set to 0, not 1.
Signed-off-by Jorge Ramirez-Ortiz <[email protected]>
Reviewed-by Patrice Chotard <[email protected]>
--- drivers/i2c/stm32f7_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/stm32f7_i2c.c +1 -1
@@ -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;
Signature · 1 line
2.34.1