summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block
diff options
context:
space:
mode:
authorSridhar Siricilla <sridhar.siricilla@intel.com>2020-02-06 18:48:22 +0530
committerPatrick Georgi <pgeorgi@google.com>2020-02-18 15:00:39 +0000
commit206905c309a6a7643a61633d0563ad1245fe7f93 (patch)
treeb556dff411dccf171974500a3bd7fc65979c956a /src/soc/intel/common/block
parent5bf7ffbe0814528436cfef5bdca00c1ef7f584d1 (diff)
soc/intel/common: Check prerequisites for HMRFPO_GET_STATUS command
Send HMRFPO_GET_STATUS command when CSE's current working state is Normal. TEST=Verified on hatch. Change-Id: I4380e5096c6346d88aae6826d19a2f4ed1e97036 Signed-off-by: Sridhar Siricilla <sridhar.siricilla@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38799 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Diffstat (limited to 'src/soc/intel/common/block')
-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");