if (rc)
return rc;
- hl_fw_preboot_update_state(hdev);
-
return 0;
}
if (rc)
return rc;
+ hl_fw_preboot_update_state(hdev);
+
/* no need to read preboot status in dynamic load */
if (hdev->asic_prop.dynamic_fw_load)
return 0;
hl_fw_boot_fit_update_state(hdev,
le32_to_cpu(dyn_regs->cpu_boot_dev_sts0),
le32_to_cpu(dyn_regs->cpu_boot_dev_sts1));
- } else {
- /* update state during preboot handshake */
- hl_fw_preboot_update_state(hdev);
}
/* copy boot fit to space allocated by FW */
}
if (!(hdev->fw_components & FW_TYPE_BOOT_CPU)) {
- /* update the preboot state */
- hl_fw_preboot_update_state(hdev);
-
rc = hl_fw_dynamic_request_descriptor(hdev, fw_loader, 0);
if (rc)
goto protocol_err;