summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorFred Reitberger <reitbergerfred@gmail.com>2023-06-01 15:59:43 -0400
committerMartin L Roth <gaumless@gmail.com>2023-06-06 21:14:32 +0000
commit5f5c721dde57620e54c6aa22fe990cabfc01a65e (patch)
tree40aff1965e4d0ca6abd6f7a57181326b0fa356e9 /src/drivers
parent45194b19f8ed143604da684a92e2c9aaa433cce4 (diff)
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 <reitbergerfred@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75586 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jon Murphy <jpmurphy@google.com> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/spi/spi_flash.c1
1 files changed, 1 insertions, 0 deletions
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;
}