i2c: rk3x: Clean start in rx_only mode

In rx only mode, if start is rewritten, a repeat start signal
will be generated, which may affect some peripherals.

Fixes: 42f500840d ("i2c: rk3x: Remove start state and irq")
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I1bdc6ee669bfcbd60e25abf723596791c59a9231
This commit is contained in:
David Wu
2020-07-24 14:40:55 +08:00
committed by Tao Huang
parent 2765488245
commit c727de5059

View File

@@ -364,6 +364,8 @@ static void rk3x_i2c_prepare_read(struct rk3x_i2c *i2c)
if (i2c->processed != 0) {
con &= ~REG_CON_MOD_MASK;
con |= REG_CON_MOD(REG_CON_MOD_RX);
if (con & REG_CON_START)
con &= ~REG_CON_START;
}
i2c_writel(i2c, con, REG_CON);