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

Corresponding to flashrom svn r1759.

Signed-off-by: Urja Rannikko <>
Acked-by: Stefan Tauner <>
1 file changed