diff mbox series

[RFC,2/3] hw/net/can: WIP CTU CAN FD mapping of IRQ for platform device solved.

Message ID 9911c9d3b8fbb1e947262b6ecf05c9f3cd0ad620.1733783500.git.pisa@cmp.felk.cvut.cz (mailing list archive)
State New
Headers show
Series WIP CTU CAN FD IP core mapping to the platform bus | expand

Commit Message

Pavel Pisa Dec. 9, 2024, 11:32 p.m. UTC
From: Pavel Pisa <pisa@cmp.felk.cvut.cz>

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
---
 hw/net/can/ctucan_mm.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/hw/net/can/ctucan_mm.c b/hw/net/can/ctucan_mm.c
index 43e6823b73..6d6b8aecb8 100644
--- a/hw/net/can/ctucan_mm.c
+++ b/hw/net/can/ctucan_mm.c
@@ -160,6 +160,9 @@  static void ctucan_mm_realize(DeviceState *dev, Error **errp)
         }
         sysbus_connect_irq(sbd, 0, qdev_get_gpio_in(gicdev, d->cfg.irq));
     }
+    for (i = 0 ; i < CTUCAN_MM_CORE_COUNT; i++) {
+        ctucan_init(&d->ctucan_state[i], d->irq);
+    }
 }
 
 /*