summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/spi
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/spi')
-rw-r--r--src/soc/amd/common/block/spi/fch_spi_ctrl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/spi/fch_spi_ctrl.c b/src/soc/amd/common/block/spi/fch_spi_ctrl.c
index b2fe13d107..e8f20f3bc6 100644
--- a/src/soc/amd/common/block/spi/fch_spi_ctrl.c
+++ b/src/soc/amd/common/block/spi/fch_spi_ctrl.c
@@ -139,8 +139,10 @@ static int spi_ctrlr_xfer(const struct spi_slave *slave, const void *dout,
return -1;
}
- if (wait_for_ready())
+ if (wait_for_ready()) {
+ printk(BIOS_ERR, "FCH SPI: Failed to acquire the SPI bus\n");
return -1;
+ }
spi_write8(SPI_CMD_CODE, cmd);
spi_write8(SPI_TX_BYTE_COUNT, bytesout);