mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
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>
This commit is contained in:
parent
da6fe6b063
commit
9ef530f196
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue