i2c: busses: rk3x: Don't care about start ipd

If the start interrupt is not enabled, don't care about this
interrupt, clean it can slove the warning log:
"rk3x-i2c fead0000.i2c: unexpected irq in STOP: 0x10 may appear".

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I0ebb145ac7971b4c128c172e136bd1dda6e6192e
This commit is contained in:
David Wu
2023-12-19 18:13:19 +08:00
committed by Tao Huang
parent 6ee328c3d6
commit 6272868cd8
+1 -1
View File
@@ -611,7 +611,7 @@ static irqreturn_t rk3x_i2c_irq(int irqno, void *dev_id)
dev_dbg(i2c->dev, "IRQ: state %d, ipd: %x\n", i2c->state, ipd);
/* Clean interrupt bits we don't care about */
ipd &= ~(REG_INT_BRF | REG_INT_BTF);
ipd &= ~(REG_INT_BRF | REG_INT_BTF | REG_INT_START);
if (ipd & REG_INT_NAKRCV) {
/*