intelblocks/cse: Skip sending EOP during S3 resume
commita4af1b58a51cd84fbce6de3ce1b13ab4cc994f36
authorMAULIK V VAGHELA <maulik.v.vaghela@intel.com>
Mon, 21 Feb 2022 13:32:19 +0000 (21 19:02 +0530)
committerFelix Held <felix-coreboot@felixheld.de>
Tue, 1 Mar 2022 11:57:38 +0000 (1 11:57 +0000)
tree7cb54023fe0edcb0ceab4787b8d4821598507e4d
parentad8437c5aa5e4fcbea2f5567266a708ce887ff9e
intelblocks/cse: Skip sending EOP during S3 resume

coreboot should skip sending EOP during S3 resume since CSE doesn't
require EOP in resume path.

Currently EOP is being sent during PAYLOAD_BOOT or PAYLOAD_LOAD stage
which doesn't get called during S3 resume.

In case EOP is moved in earlier stage, coreboot might send EOP in S3
resume as well. This patch adds check before calling cse_send_eop.

BUG=b:211085685
BRANCH=None
TEST=Check by moving EOP to earlier stage. EOP sending is skipped during
S3 resume.

Change-Id: I8f22446974bc1e7b2d57468633c36bb99ffe1436
Signed-off-by: MAULIK V VAGHELA <maulik.v.vaghela@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62271
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
src/soc/intel/common/block/cse/cse_eop.c