Skip to content

Commit 5f382fb

Browse files
committed
[ot] hw/opentitan: ot_spi_device: add reset trace message
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent 0d74aa0 commit 5f382fb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

hw/opentitan/ot_spi_device.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,6 +2579,8 @@ static void ot_spi_device_reset(DeviceState *dev)
25792579
SpiDeviceGeneric *g = &s->generic;
25802580
SpiDeviceBus *bus = &s->bus;
25812581

2582+
trace_ot_spi_device_reset("enter");
2583+
25822584
ot_spi_device_clear_modes(s);
25832585

25842586
memset(s->spi_regs, 0, SPI_REGS_SIZE);
@@ -2609,6 +2611,8 @@ static void ot_spi_device_reset(DeviceState *dev)
26092611

26102612
ot_spi_device_update_irqs(s);
26112613
ot_spi_device_update_alerts(s);
2614+
2615+
trace_ot_spi_device_reset("exit");
26122616
}
26132617

26142618
static void ot_spi_device_realize(DeviceState *dev, Error **errp)

hw/opentitan/trace-events

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ ot_spi_device_set_irq(const char *name, unsigned irq, bool level) "%s [%u]: %u"
461461
ot_spi_device_io_tpm_read_out(uint32_t addr, const char * regname, uint32_t val, uint32_t pc) "addr=0x%02x (%s), val=0x%x, pc=0x%x"
462462
ot_spi_device_io_tpm_write_in(uint32_t addr, const char * regname, uint32_t val, uint32_t pc) "addr=0x%02x (%s), val=0x%x, pc=0x%x"
463463
ot_spi_device_release(void) ""
464+
ot_spi_device_reset(const char *stage) "%s"
464465
ot_spi_device_update_last_read_addr(uint32_t addr) "0x%08x"
465466

466467
# ot_spi_host.c

0 commit comments

Comments
 (0)