Author: stefanct Date: Sun Oct 20 01:35:28 2013 New Revision: 1759 URL: http://flashrom.org/trac/flashrom/changeset/1759
Log: serial: use internal_delay() for timeouts. Using programmer_delay() for timeouts in serial writes could cause a (theoretically) endless recursion if serial communication is used to send the programmer the delay command to be executed on the programmer instead of the host which fails again, following a timeout which sends... Signed-off-by: Urja Rannikko <[email protected]> Acked-by: Stefan Tauner <[email protected]> Modified: trunk/serial.c Modified: trunk/serial.c ============================================================================== --- trunk/serial.c Sun Oct 20 01:09:16 2013 (r1758) +++ trunk/serial.c Sun Oct 20 01:35:28 2013 (r1759) @@ -357,7 +357,7 @@ if (!tmp) { msg_pdbg2("Empty write\n"); empty_writes--; - programmer_delay(500); + internal_delay(500); if (empty_writes == 0) { msg_perr("Serial port is unresponsive!\n"); return 1; _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
