From: Nobuhiro Iwamatsu Date: Wed, 11 Dec 2013 06:49:28 +0000 (+0900) Subject: rcar_i2c: Clear status before start master receive X-Git-Tag: v2014.01~12^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=da1ed0d20e992296aaafb75e545890bce933d340;p=oweals%2Fu-boot.git rcar_i2c: Clear status before start master receive Signed-off-by: Hisashi Nakamura Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index 01c98d4e16..50cebd622b 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -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);