Commit f9ac16f3 authored by Federico Vaga's avatar Federico Vaga

sw:fw: fix action answer: must set a msg_id

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 4d1a6849
......@@ -771,6 +771,8 @@ static int wrtd_out_hash_table_insert(struct trtl_fw_msg *msg_i,
tlist_count++;
ht[hidx] = &triggers[tidx];
msg_o->header->msg_id = msg_i->header->msg_id;
out:
return 0;
}
......@@ -801,6 +803,8 @@ static int wrtd_out_hash_table_remove(struct trtl_fw_msg *msg_i,
tlist_count--;
ht[hidx] = NULL;
msg_o->header->msg_id = msg_i->header->msg_id;
return 0;
}
......@@ -840,6 +844,7 @@ static int wrtd_out_trigger_index(struct trtl_fw_msg *msg_i,
return -1;
}
msg_o->header->msg_id = WRTD_OUT_ACTION_TRIG_IDX;
msg_o->header->len = 1;
return 0;
......@@ -859,6 +864,8 @@ static int wrtd_out_disable(struct trtl_fw_msg *msg_i,
pulse_queue_init(&wrtd_out_channels[ch].priv.queue);
fd_ch_writel(&wrtd_out_channels[ch], FD_DCR_MODE, FD_REG_DCR);
msg_o->header->msg_id = msg_i->header->msg_id;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment