public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: aspeed: Fix the dummy irq expected print
@ 2024-02-16 12:04 Tommy Huang
  2024-02-21 21:14 ` Andi Shyti
  0 siblings, 1 reply; 7+ messages in thread
From: Tommy Huang @ 2024-02-16 12:04 UTC (permalink / raw)
  To: brendan.higgins, andi.shyti, p.zabel, linux-i2c, openbmc
  Cc: benh, joel, andrew, linux-arm-kernel, linux-aspeed, linux-kernel,
	BMC-SW

When the i2c error condition occurred and master state was not idle,
the master irq function will goto complete state without any other
interrupt handling. It would cause dummy irq expected print. Under
this condition, assign the irq_status into irq_handle.

Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
---
 drivers/i2c/busses/i2c-aspeed.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c
index 5511fd46a65e..ce8c4846b7fa 100644
--- a/drivers/i2c/busses/i2c-aspeed.c
+++ b/drivers/i2c/busses/i2c-aspeed.c
@@ -445,6 +445,7 @@ static u32 aspeed_i2c_master_irq(struct aspeed_i2c_bus *bus, u32 irq_status)
 			irq_status);
 		irq_handled |= (irq_status & ASPEED_I2CD_INTR_MASTER_ERRORS);
 		if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE) {
+			irq_handled = irq_status;
 			bus->cmd_err = ret;
 			bus->master_state = ASPEED_I2C_MASTER_INACTIVE;
 			goto out_complete;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-05  0:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-16 12:04 [PATCH] i2c: aspeed: Fix the dummy irq expected print Tommy Huang
2024-02-21 21:14 ` Andi Shyti
2024-02-22  1:10   ` Tommy Huang
2024-02-22  8:57     ` Andi Shyti
2024-02-23  3:49       ` Tommy Huang
2024-03-04 20:56         ` Wolfram Sang
2024-03-05  0:09           ` Tommy Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox