aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-08-03 16:28:41 +0200
committerTom Rini <trini@konsulko.com>2021-09-03 14:32:41 -0400
commit1f26c49ea1d968ff59abe804af14314d5f5dc8de (patch)
tree7d08602f3ddeaf1e54282547c6956c6a52bb0a2e /cmd
parentf05d69bd0a264d622efef9649187946cfbccb930 (diff)
downloadu-boot-1f26c49ea1d968ff59abe804af14314d5f5dc8de.zip
u-boot-1f26c49ea1d968ff59abe804af14314d5f5dc8de.tar.gz
u-boot-1f26c49ea1d968ff59abe804af14314d5f5dc8de.tar.bz2
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 <pali@kernel.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/load.c b/cmd/load.c
index 3904e13..e0c896b 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));