summaryrefslogtreecommitdiffstats
path: root/drivers/net/Kconfig
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2014-11-11 21:10:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-17 08:52:52 +0100
commitef8a47a6e779747ecd83b70120eae0af35a116f3 (patch)
tree00e71a53bcf2982ddf69547e7512f38199e31c85 /drivers/net/Kconfig
parentc3f5ff55465e62053e302b2cfd74a7fab479d084 (diff)
downloadbarebox-ef8a47a6e779747ecd83b70120eae0af35a116f3.tar.gz
barebox-ef8a47a6e779747ecd83b70120eae0af35a116f3.tar.xz
scripts: kwboot: fix detection of timeout
In function kwboot_xm_sendblock() the loop that implements retrying to send a boot block might be quit if kwboot_tty_send or kwboot_tty_recv return a failure. In this case the value of the variable c that is expected to hold the response byte is uninitialized and most likely still holds an ACK from the previous call to kwboot_xm_sendblock(). So the right thing to do is not to clobber rc if it's already != 0. The result of this patch in my current scenario is that kwboot dies with xmodem: Connection timed out when the SoC stops replying instead of continuing to try sending the remaining blocks which results in select() blocking for one second for each block. Fixes: 0535713bbfa0 ("scripts: add kwboot tool") Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org> -- Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> Cc: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> I also tried to increase the timeout, but without success :-(. Will test a different USB-to-RS232 adapter ... Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/Kconfig')
0 files changed, 0 insertions, 0 deletions