From 5f5c721dde57620e54c6aa22fe990cabfc01a65e Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Thu, 1 Jun 2023 15:59:43 -0400 Subject: [PATCH] drivers/spi/spi_flash.c: Print the flash ID when find_match fails Print the flash ID codes when find_match fails to match the flash. BUG=b:285110121 Change-Id: I2106abfcfbd44c7d56d48ffbb43d8c76089af076 Signed-off-by: Fred Reitberger Reviewed-on: https://review.coreboot.org/c/coreboot/+/75586 Tested-by: build bot (Jenkins) Reviewed-by: Jon Murphy Reviewed-by: Martin Roth --- src/drivers/spi/spi_flash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c index ea1b7162d2..5182684478 100644 --- a/src/drivers/spi/spi_flash.c +++ b/src/drivers/spi/spi_flash.c @@ -467,6 +467,7 @@ static int find_match(const struct spi_slave *spi, struct spi_flash *flash, return fill_spi_flash(spi, flash, vi, part); } + printk(BIOS_WARNING, "SF: no match for ID %04x %04x\n", id[0], id[1]); return -1; }