summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/common/block/cse/cse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/cse/cse.c b/src/soc/intel/common/block/cse/cse.c
index 39c30e9cb3..afce985fa8 100644
--- a/src/soc/intel/common/block/cse/cse.c
+++ b/src/soc/intel/common/block/cse/cse.c
@@ -713,6 +713,11 @@ int cse_hmrfpo_get_status(void)
printk(BIOS_INFO, "HECI: Sending Get HMRFPO Status Command\n");
+ if (!cse_is_hfs1_cws_normal()) {
+ printk(BIOS_ERR, "HECI: CSE's current working state is not Normal\n");
+ return -1;
+ }
+
if (!heci_send_receive(&msg, sizeof(struct hmrfpo_get_status_msg),
&resp, &resp_size)) {
printk(BIOS_ERR, "HECI: HMRFPO send/receive fail\n");