From: Pali Rohár Date: Tue, 3 Aug 2021 14:28:41 +0000 (+0200) Subject: xyz-modem: Close stream after processing/sending terminate sequence X-Git-Tag: v2025.01-rc5-pxa1908~1694^2~25^2~3 X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=1f26c49ea1d968ff59abe804af14314d5f5dc8de;p=u-boot.git xyz-modem: Close stream after processing/sending terminate sequence Obviously it is not possible to send terminate sequence over stream after closing stream. Signed-off-by: Pali Rohár --- diff --git a/cmd/load.c b/cmd/load.c index 3904e133c4..e0c896bb79 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -1009,8 +1009,8 @@ static ulong load_serial_ymodem(ulong offset, int mode) printf("%s\n", xyzModem_error(err)); } - xyzModem_stream_close(&err); xyzModem_stream_terminate(false, &getcxmodem); + xyzModem_stream_close(&err); flush_cache(offset, ALIGN(size, ARCH_DMA_MINALIGN));