projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e74784
)
xyz-modem: Fix x-modem "xyzModem_eof error" at the end of file
author
Pali Rohár
<pali@kernel.org>
Tue, 3 Aug 2021 14:28:39 +0000
(16:28 +0200)
committer
Tom Rini
<trini@konsulko.com>
Fri, 3 Sep 2021 18:32:40 +0000
(14:32 -0400)
In x-modem protocol EOF is not an error state at the end of file.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/xyzModem.c
patch
|
blob
|
history
diff --git
a/common/xyzModem.c
b/common/xyzModem.c
index
b1b72aa
..
631c44e
100644
(file)
--- a/
common/xyzModem.c
+++ b/
common/xyzModem.c
@@
-572,6
+572,8
@@
xyzModem_stream_read (char *buf, int size, int *err)
CYGACC_COMM_IF_PUTC (*xyz.__chan, ACK);
ZM_DEBUG (zm_dprintf ("FINAL ACK (%d)\n", __LINE__));
}
+ else
+ stat = 0;
xyz.at_eof = true;
break;
}