UPSTREAM: drivers/intel/fsp2_0: handle reset requests from FSPM

The FSPM component can request resets. Properly handle those.

BUG=chrome-os-partner:52679
BRANCH=None
TEST=None

Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/15747
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>

Change-Id: If21245443761cb993e86c0e383c8bca87f460a85
Reviewed-on: https://chromium-review.googlesource.com/361780
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Aaron Durbin 2016-07-18 12:03:58 -05:00 committed by chrome-bot
parent 49d76538dd
commit 8aefb8c547

View file

@ -223,7 +223,9 @@ static enum fsp_status do_fsp_memory_init(struct fsp_header *hdr, bool s3wake,
printk(BIOS_DEBUG, "FspMemoryInit returned 0x%08x\n", status);
/* TODO: Is this the only thing that can happen? */
/* Handle any resets requested by FSPM. */
fsp_handle_reset(status);
if (status != FSP_SUCCESS)
return status;