diff options
author | Urja Rannikko <urjaman@gmail.com> | 2013-10-19 23:35:28 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2013-10-19 23:35:28 +0000 |
commit | 5649ce1f4583feef1603ab53c7035cdffddc8c6d (patch) | |
tree | d801c66d7bde501e9940288d1946c685634dd572 | |
parent | 3c0b736958813656792f11c77618ce5e96b97fa5 (diff) | |
download | flashrom-5649ce1f4583feef1603ab53c7035cdffddc8c6d.zip flashrom-5649ce1f4583feef1603ab53c7035cdffddc8c6d.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...
Corresponding to flashrom svn r1759.
Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
-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; |