diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-07-19 08:18:02 +0000 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2012-07-31 07:40:59 +0200 |
commit | 1c076dba277fa35384b512841b0b284bdd579383 (patch) | |
tree | 83471cfd4f1b27ba0e1be9efb14a096d45b8cb63 | |
parent | 8ec038a6a590c8ac66137502766ba10334c531e9 (diff) | |
download | u-boot-imx-1c076dba277fa35384b512841b0b284bdd579383.zip u-boot-imx-1c076dba277fa35384b512841b0b284bdd579383.tar.gz u-boot-imx-1c076dba277fa35384b512841b0b284bdd579383.tar.bz2 |
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>
-rw-r--r-- | drivers/i2c/mxc_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index fc68062..c0c45fd 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -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); |