From 6272868cd8921f94a0e82997c36e6a49abe6a080 Mon Sep 17 00:00:00 2001 From: David Wu Date: Tue, 19 Dec 2023 18:13:19 +0800 Subject: [PATCH] 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 Change-Id: I0ebb145ac7971b4c128c172e136bd1dda6e6192e --- drivers/i2c/busses/i2c-rk3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index 0d1e984c1ba2..69a56bf99e42 100644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses/i2c-rk3x.c @@ -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) { /*