Hoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16271 )
Change subject: prevent uart interrupts before having proper structs ...................................................................... prevent uart interrupts before having proper structs Change-Id: I9cf7ff883721211ae11821339505d2e3b2a7961e --- M sysmoOCTSIM/main.c 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/71/16271/1 diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c index 0f2409a..7ddca92 100644 --- a/sysmoOCTSIM/main.c +++ b/sysmoOCTSIM/main.c @@ -470,6 +470,8 @@ LOGP(DUSB, LOGL_ERROR, "foobar usb\n"); + //prevent spurious interrupts before our driver structs are ready + CRITICAL_SECTION_ENTER() ccid_instance_init(&g_ci, &c_ops, &iso_fsm_slot_ops, &usb_fs_descs.ccid.class, data_rates, clock_freqs, "", 0); @@ -480,6 +482,7 @@ llist_add_tail_at(&msg->list, &g_ccid_s.free_q); } submit_next_out(); + CRITICAL_SECTION_LEAVE() // command_print_prompt(); while (true) { // main loop -- To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16271 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ccid-firmware Gerrit-Branch: master Gerrit-Change-Id: I9cf7ff883721211ae11821339505d2e3b2a7961e Gerrit-Change-Number: 16271 Gerrit-PatchSet: 1 Gerrit-Owner: Hoernchen <ew...@sysmocom.de> Gerrit-MessageType: newchange