i2c: s3c2410: change sequence for i2c_message_start
authorHyunki Koo <hyunki00.koo@samsung.com>
Tue, 4 Mar 2014 14:13:18 +0000 (23:13 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Thu, 10 May 2018 04:40:47 +0000 (13:40 +0900)
Change-Id: Id00a637ffad58c6033231d67fed818ba27019769
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
drivers/i2c/busses/i2c-s3c2410.c

index b70a9bfa40d62f733bb391fb5ac580d852ea6670..f18eea60e68c05919b1daf6e9359a0989f382dcb 100644 (file)
@@ -307,9 +307,8 @@ static void s3c24xx_i2c_message_start(struct s3c24xx_i2c *i2c,
                addr ^= 1;
 
        /* todo - check for whether ack wanted or not */
-       s3c24xx_i2c_enable_ack(i2c);
-
        iiccon = readl(i2c->regs + S3C2410_IICCON);
+       iiccon |= S3C2410_IICCON_ACKEN;
        writel(stat, i2c->regs + S3C2410_IICSTAT);
 
        dev_dbg(i2c->dev, "START: %08lx to IICSTAT, %02x to DS\n", stat, addr);