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>
This commit is contained in:
Fred Reitberger 2023-06-01 15:59:43 -04:00 committed by Martin L Roth
parent 45194b19f8
commit 5f5c721dde
1 changed files with 1 additions and 0 deletions

View File

@ -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); 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; return -1;
} }