summaryrefslogtreecommitdiff
path: root/drivers/i2c/rcar_i2c.c
diff options
context:
space:
mode:
authorHisashi Nakamura <hisashi.nakamura.ak@renesas.com>2013-12-11 15:49:27 +0900
committerHeiko Schocher <hs@denx.de>2014-01-13 08:16:22 +0100
commitad5e14ecdd098cb1441b53862cb22e1c4ef05838 (patch)
treed0cb651e850d88f61811a10a9deb8f474ca463d4 /drivers/i2c/rcar_i2c.c
parent7f673c99c2d8d1aa21996c5b914f06d784b080ca (diff)
downloadu-boot-imx-ad5e14ecdd098cb1441b53862cb22e1c4ef05838.zip
u-boot-imx-ad5e14ecdd098cb1441b53862cb22e1c4ef05838.tar.gz
u-boot-imx-ad5e14ecdd098cb1441b53862cb22e1c4ef05838.tar.bz2
rcar_i2c: Fix receiving wait condition
Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Diffstat (limited to 'drivers/i2c/rcar_i2c.c')
-rw-r--r--drivers/i2c/rcar_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c
index ba2cadb..01c98d4 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 */