mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
mxc_i2c: fix i2c_imx_stop
Instead of clearing 2 bits, all the other bits were set because '|=' was used instead of '&='. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
8ec038a6a5
commit
1c076dba27
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ void i2c_imx_stop(void)
|
|||
|
||||
/* Stop I2C transaction */
|
||||
temp = readb(&i2c_regs->i2cr);
|
||||
temp |= ~(I2CR_MSTA | I2CR_MTX);
|
||||
temp &= ~(I2CR_MSTA | I2CR_MTX);
|
||||
writeb(temp, &i2c_regs->i2cr);
|
||||
|
||||
i2c_imx_bus_busy(0);
|
||||
|
|
Loading…
Reference in a new issue