mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user