[otp_ctrl] Fix a DAI/KDI concurrency issue
Fix #4852
The scrambling datapath mutex was accidentally released in the KDI when
requesting data from EDN.
Signed-off-by: Michael Schaffner <msf@opentitan.org>
diff --git a/hw/ip/otp_ctrl/rtl/otp_ctrl_kdi.sv b/hw/ip/otp_ctrl/rtl/otp_ctrl_kdi.sv
index 95703e3..8a6d9a3 100644
--- a/hw/ip/otp_ctrl/rtl/otp_ctrl_kdi.sv
+++ b/hw/ip/otp_ctrl/rtl/otp_ctrl_kdi.sv
@@ -371,6 +371,7 @@
///////////////////////////////////////////////////////////////////
// Fetch random data to ingest for key derivation.
FetchEntropySt: begin
+ scrmbl_mtx_req_o = 1'b1;
edn_req_o = 1'b1;
if (edn_ack_i) begin
nonce_reg_en = 1'b1;