]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Do not change received character in kwboot_xm_recv_reply()
authorPali Rohár <pali@kernel.org>
Tue, 25 Jan 2022 17:13:04 +0000 (18:13 +0100)
committerStefan Roese <sr@denx.de>
Mon, 31 Jan 2022 09:23:38 +0000 (10:23 +0100)
commit9046ce8507d4e1a0ca7b19d696494146e9546998
tree128dbfc2ea6ba6aa3ee138807f1d6bf34b4392b3
parentebe54101aa2936b8e7fbd71c9b88052c27da23a3
tools: kwboot: Do not change received character in kwboot_xm_recv_reply()

Marvell BootROM expects retransmission of previous xmodem packet only in
the case when it sends NAK response to the host.

Do not change non-xmodem response (possibly UART transfer error) to NAK
in kwboot_xm_recv_reply() function. Allow caller to receive original
response from device.

Change argument 'nak_on_non_xm' to 'stop_on_non_xm'. Instead of changing
non-xmodem character to NAK, stop processing on invalid character and
return it.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c