soc/amd/common/block/spi/fch_spi_ctrl: handle failure in execute_command
commit1105fe89131c3841378f44d584acda674f91db28
authorFelix Held <felix-coreboot@felixheld.de>
Fri, 10 Dec 2021 17:38:16 +0000 (10 18:38 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 15 Dec 2021 22:38:31 +0000 (15 22:38 +0000)
tree131c58e2441caaf6645e4ebe3b553898e4bab447
parenta3930dafd42e10f2003148b0acf8cb28265eaba0
soc/amd/common/block/spi/fch_spi_ctrl: handle failure in execute_command

When wait_for_ready returned a timeout, execute_command still ended up
returning success. Fix this be returning a failure in this case.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Id012e74e26065c12d003793322dcdd448df758b0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60119
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
src/soc/amd/common/block/spi/fch_spi_ctrl.c