Using programmer_delay when serial is being used, could
cause a major recursion (and breakage of the serial protocol).
This has not been noticed because apparently all serial drivers
used appear to always write >0 bytes, but still...

Signed-off-by: Urja Rannikko <[email protected]>
---
 serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/serial.c b/serial.c
index 4d912ba..126079a 100644
--- a/serial.c
+++ b/serial.c
@@ -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;
-- 
1.8.4


_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to