summaryrefslogtreecommitdiffstats
path: root/hw/i2c/aspeed_i2c.c
diff options
context:
space:
mode:
authorJoe Komlodi2022-06-13 14:05:48 +0200
committerCédric Le Goater2022-06-22 09:49:34 +0200
commit0efec47b5f25761cdc476099d8b72a1c1233e07b (patch)
tree8d4452feefdbf77720aae84f26f378754a1030dc /hw/i2c/aspeed_i2c.c
parentaspeed: i2c: Add new mode support (diff)
downloadqemu-0efec47b5f25761cdc476099d8b72a1c1233e07b.tar.gz
qemu-0efec47b5f25761cdc476099d8b72a1c1233e07b.tar.xz
qemu-0efec47b5f25761cdc476099d8b72a1c1233e07b.zip
aspeed: i2c: Add PKT_DONE IRQ to trace
Signed-off-by: Joe Komlodi <komlodi@google.com> Change-Id: I566eb09f4b9016e24570572f367627f6594039f5 Message-Id: <20220331043248.2237838-7-komlodi@google.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/i2c/aspeed_i2c.c')
-rw-r--r--hw/i2c/aspeed_i2c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c
index 8b6a88315a..0e0cd5bec8 100644
--- a/hw/i2c/aspeed_i2c.c
+++ b/hw/i2c/aspeed_i2c.c
@@ -305,6 +305,9 @@ static inline void aspeed_i2c_bus_raise_interrupt(AspeedI2CBus *bus)
bool raise_irq;
trace_aspeed_i2c_bus_raise_interrupt(bus->regs[reg_intr_sts],
+ aspeed_i2c_bus_pkt_mode_en(bus) &&
+ ARRAY_FIELD_EX32(bus->regs, I2CM_INTR_STS, PKT_CMD_DONE) ?
+ "pktdone|" : "",
SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, TX_NAK) ? "nak|" : "",
SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, TX_ACK) ? "ack|" : "",
SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, RX_DONE) ? "done|"