rcar_i2c: Clear status before start master receive
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Wed, 11 Dec 2013 06:49:28 +0000 (15:49 +0900)
committerHeiko Schocher <hs@denx.de>
Mon, 13 Jan 2014 07:16:48 +0000 (08:16 +0100)
Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
drivers/i2c/rcar_i2c.c

index 01c98d4e16383e7554f0759d406c93d5e0c6174e..50cebd622b74702ecd4af14821f302f3d391ef84 100644 (file)
@@ -119,6 +119,8 @@ rcar_i2c_raw_read(struct rcar_i2c *dev, u8 chip, uint addr)
 
        /* set slave address, receive */
        writel((chip << 1) | 1, &dev->icmar);
+       /* clear status */
+       writel(0, &dev->icmsr);
        /* start master receive */
        writel(MCR_MDBS | MCR_MIE | MCR_ESG, &dev->icmcr);