]> git.sur5r.net Git - u-boot/commit
i2c: rcar_i2c: Fix order of restart and clear status
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Tue, 4 Nov 2014 04:28:50 +0000 (13:28 +0900)
committerHeiko Schocher <hs@denx.de>
Mon, 10 Nov 2014 05:47:37 +0000 (06:47 +0100)
commitcd818a381ddcdc2440a167757394298f28b70240
tree3cd737afa41f0024748785127c58bf973ce8528a
parent6dd38cc35245db624443ee596eb78853fa9cca7a
i2c: rcar_i2c: Fix order of restart and clear status

In case of repeated START condition, the restart has to be kicked
before clear status (MSR register). If it is kicked after clear status,
R-Car I2C may transfer data (TXD register) or receive data (RXD register)
instead of transferring slave address (MAR register).

Signed-off-by: Ryo Kataoka <ryo.kataoka.wt@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
drivers/i2c/rcar_i2c.c