diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2013-10-19 23:35:28 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2013-10-19 23:35:28 +0000 |
commit | 478b73468e7fa600ad3bf2e0a3254b67288b10aa (patch) | |
tree | d801c66d7bde501e9940288d1946c685634dd572 /serial.c | |
parent | b520b4e993399b6de2ec4229a28f881aa8cfbec1 (diff) | |
download | flashrom-478b73468e7fa600ad3bf2e0a3254b67288b10aa.tar.gz |
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@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1759 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -357,7 +357,7 @@ int serialport_write(unsigned char *buf, unsigned int writecnt) 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; |