mirror of
https://review.coreboot.org/flashrom.git
synced 2025-06-30 21:52:36 +02:00
Handle programmer init errors and abort
If the programmer didn't initialize correctly, it is pointless to continue. Fix standalone IT87* SPI init to set flashbus to NONE if no IT87* SPI communication is possible. Print the I/O port detected by the IT87* SPI code. Corresponding to flashrom svn r633. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ward Vandewege <ward@gnu.org>
This commit is contained in:
@ -692,7 +692,10 @@ int main(int argc, char *argv[])
|
||||
if (optind < argc)
|
||||
filename = argv[optind++];
|
||||
|
||||
ret = programmer_init();
|
||||
if (programmer_init()) {
|
||||
fprintf(stderr, "Error: Programmer initialization failed.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
myusec_calibrate_delay();
|
||||
|
||||
|
Reference in New Issue
Block a user