[flashrom] [commit] r1759 - trunk

repository service svn at flashrom.org
Sun Oct 20 01:35:28 CEST 2013


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 <urjaman at gmail.com>
Acked-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>

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;




More information about the flashrom mailing list