diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2015-09-03 22:20:10 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-10-09 23:31:13 +0200 |
commit | 315a1736a2f2d9ad21dddea6bed766469342c2dc (patch) | |
tree | 76c52abdc23548154cd0190358a786f96b743955 /drivers/i2c/busses/i2c-rcar.c | |
parent | i2c: rcar: init new messages in irq (diff) | |
download | linux-315a1736a2f2d9ad21dddea6bed766469342c2dc.tar.xz linux-315a1736a2f2d9ad21dddea6bed766469342c2dc.zip |
i2c: rcar: don't issue stop when HW does it automatically
The manual says (55.4.8.6) that HW does automatically send STOP after
NACK was received. My measuerments confirm that.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-rcar.c')
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 36c79301044b..dcf9fc77cec7 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -458,8 +458,8 @@ static irqreturn_t rcar_i2c_irq(int irq, void *ptr) /* Nack */ if (msr & MNR) { - /* go to stop phase */ - rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_STOP); + /* HW automatically sends STOP after received NACK */ + rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_DATA); rcar_i2c_write(priv, ICMIER, RCAR_IRQ_STOP); rcar_i2c_flags_set(priv, ID_NACK); goto out; |