From: Hisashi Nakamura Date: Wed, 11 Dec 2013 06:49:27 +0000 (+0900) Subject: rcar_i2c: Fix receiving wait condition X-Git-Tag: v2014.01~12^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad5e14ecdd098cb1441b53862cb22e1c4ef05838;p=u-boot rcar_i2c: Fix receiving wait condition 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 ba2cadb17e..01c98d4e16 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -122,8 +122,8 @@ rcar_i2c_raw_read(struct rcar_i2c *dev, u8 chip, uint addr) /* start master receive */ writel(MCR_MDBS | MCR_MIE | MCR_ESG, &dev->icmcr); - while ((readl(&dev->icmsr) & (MSR_MAT | MSR_MDE)) - != (MSR_MAT | MSR_MDE)) + while ((readl(&dev->icmsr) & (MSR_MAT | MSR_MDR)) + != (MSR_MAT | MSR_MDR)) udelay(10); /* clear ESG */